pub struct NamedVolumeCreate {
pub mode: NamedVolumeMode,
pub name: String,
pub kind: VolumeKind,
pub quota_mib: Option<u32>,
pub capacity_mib: Option<u32>,
pub labels: Vec<(String, String)>,
}Expand description
Creation metadata for sandbox-time named volume provisioning.
Fields§
§mode: NamedVolumeModeCreation behavior for this named volume mount.
name: StringVolume name to create or ensure exists.
kind: VolumeKindStorage kind to create or ensure exists.
quota_mib: Option<u32>Directory quota in MiB, if configured.
capacity_mib: Option<u32>Disk capacity in MiB, if configured.
labels: Vec<(String, String)>Labels to attach to newly-created volumes.
Implementations§
Source§impl NamedVolumeCreate
impl NamedVolumeCreate
Sourcepub fn mode(&self) -> NamedVolumeMode
pub fn mode(&self) -> NamedVolumeMode
Creation behavior for this named volume mount.
Sourcepub fn kind(&self) -> VolumeKind
pub fn kind(&self) -> VolumeKind
Storage kind to create or ensure exists.
Sourcepub fn capacity_mib(&self) -> Option<u32>
pub fn capacity_mib(&self) -> Option<u32>
Disk capacity in MiB, if configured.
Trait Implementations§
Source§impl Clone for NamedVolumeCreate
impl Clone for NamedVolumeCreate
Source§fn clone(&self) -> NamedVolumeCreate
fn clone(&self) -> NamedVolumeCreate
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 NamedVolumeCreate
impl Debug for NamedVolumeCreate
Source§impl<'de> Deserialize<'de> for NamedVolumeCreate
impl<'de> Deserialize<'de> for NamedVolumeCreate
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 NamedVolumeCreate
impl RefUnwindSafe for NamedVolumeCreate
impl Send for NamedVolumeCreate
impl Sync for NamedVolumeCreate
impl Unpin for NamedVolumeCreate
impl UnsafeUnpin for NamedVolumeCreate
impl UnwindSafe for NamedVolumeCreate
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