pub struct CapacityRange {
pub limit_bytes: Option<i64>,
pub required_bytes: Option<i64>,
}
Expand description
CapacityRange : CapacityRange describes the minimum and maximum capacity a volume should be created with
Fields§
§limit_bytes: Option<i64>
LimitBytes specifies that a volume must not be bigger than this. The value of 0 indicates an unspecified maximum
required_bytes: Option<i64>
RequiredBytes specifies that a volume must be at least this big. The value of 0 indicates an unspecified minimum.
Implementations§
Source§impl CapacityRange
impl CapacityRange
Sourcepub fn new() -> CapacityRange
pub fn new() -> CapacityRange
CapacityRange describes the minimum and maximum capacity a volume should be created with
Trait Implementations§
Source§impl Clone for CapacityRange
impl Clone for CapacityRange
Source§fn clone(&self) -> CapacityRange
fn clone(&self) -> CapacityRange
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CapacityRange
impl Debug for CapacityRange
Source§impl Default for CapacityRange
impl Default for CapacityRange
Source§fn default() -> CapacityRange
fn default() -> CapacityRange
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CapacityRange
impl<'de> Deserialize<'de> for CapacityRange
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for CapacityRange
impl PartialEq for CapacityRange
Source§impl Serialize for CapacityRange
impl Serialize for CapacityRange
impl StructuralPartialEq for CapacityRange
Auto Trait Implementations§
impl Freeze for CapacityRange
impl RefUnwindSafe for CapacityRange
impl Send for CapacityRange
impl Sync for CapacityRange
impl Unpin for CapacityRange
impl UnwindSafe for CapacityRange
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more