pub struct VolumeRequestBuilder { /* private fields */ }
Expand description
Builder for VolumeRequest
.
Implementations§
Source§impl VolumeRequestBuilder
impl VolumeRequestBuilder
pub fn read_only(&mut self, value: bool) -> &mut Self
pub fn attachment_mode(&mut self, value: String) -> &mut Self
pub fn name(&mut self, value: String) -> &mut Self
pub fn source(&mut self, value: String) -> &mut Self
pub fn mount_options(&mut self, value: Option<CsiMountOptions>) -> &mut Self
pub fn per_alloc(&mut self, value: bool) -> &mut Self
pub fn type(&mut self, value: String) -> &mut Self
pub fn access_mode(&mut self, value: String) -> &mut Self
Sourcepub fn build(&self) -> Result<VolumeRequest, VolumeRequestBuilderError>
pub fn build(&self) -> Result<VolumeRequest, VolumeRequestBuilderError>
Trait Implementations§
Source§impl Clone for VolumeRequestBuilder
impl Clone for VolumeRequestBuilder
Source§fn clone(&self) -> VolumeRequestBuilder
fn clone(&self) -> VolumeRequestBuilder
Returns a copy 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 moreAuto Trait Implementations§
impl Freeze for VolumeRequestBuilder
impl RefUnwindSafe for VolumeRequestBuilder
impl Send for VolumeRequestBuilder
impl Sync for VolumeRequestBuilder
impl Unpin for VolumeRequestBuilder
impl UnwindSafe for VolumeRequestBuilder
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