pub struct VolumeBuilder<'a> { /* private fields */ }Expand description
Builder for Volume.
Implementations§
source§impl<'a> VolumeBuilder<'a>
impl<'a> VolumeBuilder<'a>
sourcepub fn availability_zone<VALUE: Into<Option<Cow<'a, str>>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn availability_zone<VALUE: Into<Option<Cow<'a, str>>>>( &mut self, value: VALUE, ) -> &mut Self
The name of the availability zone.
sourcepub fn consistencygroup_id<VALUE: Into<Option<Cow<'a, str>>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn consistencygroup_id<VALUE: Into<Option<Cow<'a, str>>>>( &mut self, value: VALUE, ) -> &mut Self
The UUID of the consistency group.
sourcepub fn description<VALUE: Into<Option<Cow<'a, str>>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn description<VALUE: Into<Option<Cow<'a, str>>>>( &mut self, value: VALUE, ) -> &mut Self
The volume description.
pub fn display_description<VALUE: Into<Option<Cow<'a, str>>>>( &mut self, value: VALUE, ) -> &mut Self
pub fn display_name<VALUE: Into<Option<Cow<'a, str>>>>( &mut self, value: VALUE, ) -> &mut Self
pub fn image_id<VALUE: Into<Option<Cow<'a, str>>>>( &mut self, value: VALUE, ) -> &mut Self
sourcepub fn image_ref<VALUE: Into<Option<Cow<'a, str>>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn image_ref<VALUE: Into<Option<Cow<'a, str>>>>( &mut self, value: VALUE, ) -> &mut Self
The UUID of the image from which you want to create the volume. Required to create a bootable volume.
pub fn multiattach<VALUE: Into<Option<bool>>>( &mut self, value: VALUE, ) -> &mut Self
sourcepub fn name<VALUE: Into<Option<Cow<'a, str>>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn name<VALUE: Into<Option<Cow<'a, str>>>>( &mut self, value: VALUE, ) -> &mut Self
The volume name.
sourcepub fn size<VALUE: Into<Option<i32>>>(&mut self, value: VALUE) -> &mut Self
pub fn size<VALUE: Into<Option<i32>>>(&mut self, value: VALUE) -> &mut Self
The size of the volume, in gibibytes (GiB).
sourcepub fn snapshot_id<VALUE: Into<Option<Cow<'a, str>>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn snapshot_id<VALUE: Into<Option<Cow<'a, str>>>>( &mut self, value: VALUE, ) -> &mut Self
The UUID of the consistency group.
sourcepub fn source_volid<VALUE: Into<Option<Cow<'a, str>>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn source_volid<VALUE: Into<Option<Cow<'a, str>>>>( &mut self, value: VALUE, ) -> &mut Self
The UUID of the consistency group.
sourcepub fn volume_type<VALUE: Into<Option<Cow<'a, str>>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn volume_type<VALUE: Into<Option<Cow<'a, str>>>>( &mut self, value: VALUE, ) -> &mut Self
The volume type (either name or ID). To create an environment with
multiple-storage back ends, you must specify a volume type. Block
Storage volume back ends are spawned as children to cinder- volume,
and they are keyed from a unique queue. They are named
cinder- volume.HOST.BACKEND. For example,
cinder- volume.ubuntu.lvmdriver. When a volume is created, the
scheduler chooses an appropriate back end to handle the request based
on the volume type. Default is None. For information about how to use
volume types to create multiple- storage back ends, see
Configure multiple-storage back ends.
source§impl<'a> VolumeBuilder<'a>
impl<'a> VolumeBuilder<'a>
sourcepub fn metadata<I, K, V>(&mut self, iter: I) -> &mut Self
pub fn metadata<I, K, V>(&mut self, iter: I) -> &mut Self
One or more metadata key and value pairs to be associated with the new volume.
pub fn properties<I, K, V>(&mut self, iter: I) -> &mut Self
Trait Implementations§
source§impl<'a> Clone for VolumeBuilder<'a>
impl<'a> Clone for VolumeBuilder<'a>
source§fn clone(&self) -> VolumeBuilder<'a>
fn clone(&self) -> VolumeBuilder<'a>
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl<'a> Freeze for VolumeBuilder<'a>
impl<'a> RefUnwindSafe for VolumeBuilder<'a>
impl<'a> Send for VolumeBuilder<'a>
impl<'a> Sync for VolumeBuilder<'a>
impl<'a> Unpin for VolumeBuilder<'a>
impl<'a> UnwindSafe for VolumeBuilder<'a>
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more