pub struct Volume {
pub name: String,
pub path: String,
pub subpath: Option<String>,
pub key: String,
pub lifetime: Lifetime,
pub kind: VolumeKind,
}Expand description
A machine’s volume.
Fields§
§name: StringThe volume’s name in the spec.
path: StringWhere the machine mounts it.
subpath: Option<String>The folder of a shared volume it takes, if not all of it.
key: StringThe name the runtime knows it by (a Compose named volume).
lifetime: LifetimeHow long its storage lives.
kind: VolumeKindWhether the machine keeps it to itself or shares it.
Trait Implementations§
impl Eq for Volume
impl StructuralPartialEq for Volume
Auto Trait Implementations§
impl Freeze for Volume
impl RefUnwindSafe for Volume
impl Send for Volume
impl Sync for Volume
impl Unpin for Volume
impl UnsafeUnpin for Volume
impl UnwindSafe for Volume
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.