Mount the volumes defined by another container into this one.
Where do we get these volumes from?
What permissions should we apply to these volumes?
Construct a VolumesFrom
object using the name of a service in
this docker-compose.yml
file.
use compose_yml::v2 as dc;
let vf = dc::VolumesFrom::service("myservice");
assert_eq!(vf.source,
dc::ServiceOrContainer::Service("myservice".to_owned()));
dc::VolumesFrom {
permissions: dc::VolumePermissions::ReadOnly,
..dc::VolumesFrom::service("myservice")
};
Construct a VolumesFrom
object using the name of a Docker
container defined elsewhere.
use compose_yml::v2 as dc;
let vf = dc::VolumesFrom::container("mycontainer");
assert_eq!(vf.source,
dc::ServiceOrContainer::Container("mycontainer".to_owned()));
This method tests for self
and other
values to be equal, and is used by ==
. Read more
This method tests for !=
.
Performs copy-assignment from source
. Read more
Formats the value using the given formatter. Read more
Formats the value using the given formatter. Read more
The associated error which can be returned from parsing.
Parses a string s
to return a value of this type. Read more
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
Converts the given value to a String
. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
impl<T> Typeable for T where T: Any, | |
Get the TypeId
of this object.