pub struct VolumesFrom {
pub source: VolumesFromSource,
pub read_only: bool,
}Expand description
Fields§
§source: VolumesFromSourceSource of the volumes to mount, either another service or an externally managed container.
read_only: boolWhether to mount the volumes as read-only.
Implementations§
Source§impl VolumesFrom
impl VolumesFrom
Sourcepub fn parse<T>(volumes_from: T) -> Result<Self, InvalidIdentifierError>
pub fn parse<T>(volumes_from: T) -> Result<Self, InvalidIdentifierError>
Parse a VolumesFrom from a string in the format [container:]{identifier}[:ro|rw].
§Errors
Returns an error if the service or container is not a valid Identifier.
Trait Implementations§
Source§impl Clone for VolumesFrom
impl Clone for VolumesFrom
Source§fn clone(&self) -> VolumesFrom
fn clone(&self) -> VolumesFrom
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 VolumesFrom
impl Debug for VolumesFrom
Source§impl<'_de> Deserialize<'_de> for VolumesFrom
impl<'_de> Deserialize<'_de> for VolumesFrom
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 VolumesFrom
impl Display for VolumesFrom
Source§impl From<VolumesFrom> for String
impl From<VolumesFrom> for String
Source§fn from(value: VolumesFrom) -> Self
fn from(value: VolumesFrom) -> Self
Converts to this type from the input type.
Source§impl From<VolumesFromSource> for VolumesFrom
impl From<VolumesFromSource> for VolumesFrom
Source§fn from(source: VolumesFromSource) -> Self
fn from(source: VolumesFromSource) -> Self
Converts to this type from the input type.
Source§impl FromStr for VolumesFrom
impl FromStr for VolumesFrom
Source§impl Hash for VolumesFrom
impl Hash for VolumesFrom
Source§impl PartialEq for VolumesFrom
impl PartialEq for VolumesFrom
Source§impl Serialize for VolumesFrom
impl Serialize for VolumesFrom
Source§impl TryFrom<&str> for VolumesFrom
impl TryFrom<&str> for VolumesFrom
Source§impl TryFrom<String> for VolumesFrom
impl TryFrom<String> for VolumesFrom
impl Eq for VolumesFrom
impl StructuralPartialEq for VolumesFrom
Auto Trait Implementations§
impl Freeze for VolumesFrom
impl RefUnwindSafe for VolumesFrom
impl Send for VolumesFrom
impl Sync for VolumesFrom
impl Unpin for VolumesFrom
impl UnwindSafe for VolumesFrom
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.