pub struct VolumeSpec {
pub name: String,
pub kind: VolumeKind,
pub quota_mib: Option<u32>,
pub capacity_mib: Option<u32>,
pub labels: Vec<(String, String)>,
}Expand description
Configuration for creating a named volume.
Fields§
§name: StringVolume name.
kind: VolumeKindStorage kind.
quota_mib: Option<u32>Size quota in MiB. None means unlimited.
capacity_mib: Option<u32>Disk capacity in MiB. Required for disk volumes.
labels: Vec<(String, String)>Labels for organization.
Implementations§
Trait Implementations§
Source§impl Clone for VolumeSpec
impl Clone for VolumeSpec
Source§fn clone(&self) -> VolumeSpec
fn clone(&self) -> VolumeSpec
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 VolumeSpec
impl Debug for VolumeSpec
Source§impl<'de> Deserialize<'de> for VolumeSpec
impl<'de> Deserialize<'de> for VolumeSpec
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
Auto Trait Implementations§
impl Freeze for VolumeSpec
impl RefUnwindSafe for VolumeSpec
impl Send for VolumeSpec
impl Sync for VolumeSpec
impl Unpin for VolumeSpec
impl UnsafeUnpin for VolumeSpec
impl UnwindSafe for VolumeSpec
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