pub struct VolumeBuilder { /* private fields */ }
Expand description
Builder for Volume
.
Implementations§
Source§impl VolumeBuilder
impl VolumeBuilder
Sourcepub fn created_at<VALUE: Into<Option<String>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn created_at<VALUE: Into<Option<String>>>( &mut self, value: VALUE, ) -> &mut Self
Date/Time the volume was created.
Sourcepub fn driver<VALUE: Into<Option<String>>>(&mut self, value: VALUE) -> &mut Self
pub fn driver<VALUE: Into<Option<String>>>(&mut self, value: VALUE) -> &mut Self
Name of the volume driver used by the volume.
Sourcepub fn labels<VALUE: Into<Option<HashMap<String, String>>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn labels<VALUE: Into<Option<HashMap<String, String>>>>( &mut self, value: VALUE, ) -> &mut Self
User-defined key/value metadata.
Sourcepub fn mountpoint<VALUE: Into<Option<String>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn mountpoint<VALUE: Into<Option<String>>>( &mut self, value: VALUE, ) -> &mut Self
Mount path of the volume on the host.
Sourcepub fn name<VALUE: Into<Option<String>>>(&mut self, value: VALUE) -> &mut Self
pub fn name<VALUE: Into<Option<String>>>(&mut self, value: VALUE) -> &mut Self
Name of the volume.
Sourcepub fn options<VALUE: Into<Option<HashMap<String, String>>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn options<VALUE: Into<Option<HashMap<String, String>>>>( &mut self, value: VALUE, ) -> &mut Self
The driver specific options used when creating the volume.
Sourcepub fn scope<VALUE: Into<Option<String>>>(&mut self, value: VALUE) -> &mut Self
pub fn scope<VALUE: Into<Option<String>>>(&mut self, value: VALUE) -> &mut Self
The level at which the volume exists. Either global
for cluster-wide, or local
for machine level.
Sourcepub fn status<VALUE: Into<Option<HashMap<String, Value>>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn status<VALUE: Into<Option<HashMap<String, Value>>>>( &mut self, value: VALUE, ) -> &mut Self
Low-level details about the volume, provided by the volume driver.
Details are returned as a map with key/value pairs:
{"key":"value","key2":"value2"}
.
The Status
field is optional, and is omitted if the volume driver
does not support this feature.
Sourcepub fn usage_data<VALUE: Into<Option<VolumeUsageData>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn usage_data<VALUE: Into<Option<VolumeUsageData>>>( &mut self, value: VALUE, ) -> &mut Self
usage data.
Trait Implementations§
Source§impl Clone for VolumeBuilder
impl Clone for VolumeBuilder
Source§fn clone(&self) -> VolumeBuilder
fn clone(&self) -> VolumeBuilder
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 Default for VolumeBuilder
impl Default for VolumeBuilder
Source§fn default() -> VolumeBuilder
fn default() -> VolumeBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for VolumeBuilder
impl RefUnwindSafe for VolumeBuilder
impl Send for VolumeBuilder
impl Sync for VolumeBuilder
impl Unpin for VolumeBuilder
impl UnwindSafe for VolumeBuilder
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