@@ -102,6 +102,7 @@ pub struct MountInfo {
102102 pub block_size : Option < i64 > ,
103103 pub replicas : Option < i32 > ,
104104 pub mount_type : MountType ,
105+ pub quota_size : Option < i64 > ,
105106}
106107
107108impl MountInfo {
@@ -156,6 +157,7 @@ pub struct MountOptions {
156157 pub replicas : Option < i32 > ,
157158 pub mount_type : MountType ,
158159 pub remove_properties : Vec < String > ,
160+ pub quota_size : Option < i64 > ,
159161}
160162
161163impl MountOptions {
@@ -179,6 +181,7 @@ impl MountOptions {
179181 block_size : self . block_size ,
180182 replicas : self . replicas ,
181183 mount_type : self . mount_type ,
184+ quota_size : self . quota_size ,
182185 }
183186 }
184187}
@@ -195,6 +198,7 @@ pub struct MountOptionsBuilder {
195198 replicas : Option < i32 > ,
196199 mount_type : MountType ,
197200 remove_properties : Vec < String > ,
201+ quota_size : Option < i64 > ,
198202}
199203
200204impl MountOptionsBuilder {
@@ -266,6 +270,11 @@ impl MountOptionsBuilder {
266270 self
267271 }
268272
273+ pub fn quota_size ( mut self , quota_size : i64 ) -> Self {
274+ self . quota_size = Some ( quota_size) ;
275+ self
276+ }
277+
269278 pub fn build ( self ) -> MountOptions {
270279 MountOptions {
271280 update : self . update ,
@@ -278,6 +287,7 @@ impl MountOptionsBuilder {
278287 replicas : self . replicas ,
279288 mount_type : self . mount_type ,
280289 remove_properties : self . remove_properties ,
290+ quota_size : self . quota_size ,
281291 }
282292 }
283293}
0 commit comments