pub struct ShortVolume {
pub container_path: AbsolutePath,
pub options: Option<ShortOptions>,
}Expand description
Short Service container volume syntax.
(De)serializes from/to a string in the format [{source}:]{container_path}[:{options}], where
options is a comma (,) separated list of bind mount options:
rw: Read and write access, the default.ro: Read-only access, setsoptions.read_onlytotrue.z: Shared SELinux relabeling, setsoptions.selinuxtoSome(SELinux::Shared).Z: Private SELinux relabeling, setsoptions.selinuxtoSome(SELinux::Private).
Fields§
§container_path: AbsolutePathPath within the container where the volume is mounted.
options: Option<ShortOptions>Implementations§
Source§impl ShortVolume
impl ShortVolume
Sourcepub const fn new(container_path: AbsolutePath) -> Self
pub const fn new(container_path: AbsolutePath) -> Self
Create a new ShortVolume.
Trait Implementations§
Source§impl Clone for ShortVolume
impl Clone for ShortVolume
Source§fn clone(&self) -> ShortVolume
fn clone(&self) -> ShortVolume
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 ShortVolume
impl Debug for ShortVolume
Source§impl<'_de> Deserialize<'_de> for ShortVolume
impl<'_de> Deserialize<'_de> for ShortVolume
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 Display for ShortVolume
impl Display for ShortVolume
Source§impl From<AbsolutePath> for ShortVolume
impl From<AbsolutePath> for ShortVolume
Source§fn from(container_path: AbsolutePath) -> Self
fn from(container_path: AbsolutePath) -> Self
Converts to this type from the input type.
Source§impl From<ShortVolume> for Mount
impl From<ShortVolume> for Mount
Source§fn from(value: ShortVolume) -> Self
fn from(value: ShortVolume) -> Self
Converts to this type from the input type.
Source§impl<L> From<ShortVolume> for ShortOrLong<ShortVolume, L>
impl<L> From<ShortVolume> for ShortOrLong<ShortVolume, L>
Source§fn from(value: ShortVolume) -> Self
fn from(value: ShortVolume) -> Self
Converts to this type from the input type.
Source§impl FromStr for ShortVolume
impl FromStr for ShortVolume
Source§impl Hash for ShortVolume
impl Hash for ShortVolume
Source§impl PartialEq for ShortVolume
impl PartialEq for ShortVolume
Source§impl Serialize for ShortVolume
impl Serialize for ShortVolume
impl Eq for ShortVolume
impl StructuralPartialEq for ShortVolume
Auto Trait Implementations§
impl Freeze for ShortVolume
impl RefUnwindSafe for ShortVolume
impl Send for ShortVolume
impl Sync for ShortVolume
impl Unpin for ShortVolume
impl UnwindSafe for ShortVolume
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.