Struct bollard::volume::CreateVolumeOptions [−][src]
pub struct CreateVolumeOptions<T> where
T: Into<String> + Eq + Hash + Serialize, {
pub name: T,
pub driver: T,
pub driver_opts: HashMap<T, T>,
pub labels: HashMap<T, T>,
}
Expand description
Volume configuration used in the Create Volume API
Fields
name: T
The new volume’s name. If not specified, Docker generates a name.
driver: T
Name of the volume driver to use.
driver_opts: HashMap<T, T>
A mapping of driver options and values. These options are passed directly to the driver and are driver specific.
labels: HashMap<T, T>
User-defined key/value metadata.
Trait Implementations
Returns the “default value” for a type. Read more
impl<'de, T> Deserialize<'de> for CreateVolumeOptions<T> where
T: Into<String> + Eq + Hash + Serialize,
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for CreateVolumeOptions<T> where
T: Into<String> + Eq + Hash + Serialize,
T: Deserialize<'de>,
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<T> RefUnwindSafe for CreateVolumeOptions<T> where
T: RefUnwindSafe,
impl<T> Send for CreateVolumeOptions<T> where
T: Send,
impl<T> Sync for CreateVolumeOptions<T> where
T: Sync,
impl<T> Unpin for CreateVolumeOptions<T> where
T: Unpin,
impl<T> UnwindSafe for CreateVolumeOptions<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more