pub struct CsiSnapshotBuilder { /* private fields */ }
Expand description
Builder for CsiSnapshot
.
Implementations§
Source§impl CsiSnapshotBuilder
impl CsiSnapshotBuilder
pub fn id(&mut self, value: String) -> &mut Self
pub fn external_source_volume_id(&mut self, value: String) -> &mut Self
pub fn source_volume_id(&mut self, value: String) -> &mut Self
pub fn plugin_id(&mut self, value: String) -> &mut Self
Sourcepub fn name(&mut self, value: String) -> &mut Self
pub fn name(&mut self, value: String) -> &mut Self
These field are only used during snapshot creation and will not be populated when the snapshot is returned
pub fn secrets(&mut self, value: HashMap<String, String>) -> &mut Self
pub fn parameters(&mut self, value: HashMap<String, String>) -> &mut Self
pub fn size_bytes(&mut self, value: i64) -> &mut Self
pub fn create_time(&mut self, value: i64) -> &mut Self
pub fn is_ready(&mut self, value: bool) -> &mut Self
Sourcepub fn build(&self) -> Result<CsiSnapshot, CsiSnapshotBuilderError>
pub fn build(&self) -> Result<CsiSnapshot, CsiSnapshotBuilderError>
Trait Implementations§
Source§impl Clone for CsiSnapshotBuilder
impl Clone for CsiSnapshotBuilder
Source§fn clone(&self) -> CsiSnapshotBuilder
fn clone(&self) -> CsiSnapshotBuilder
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 CsiSnapshotBuilder
impl RefUnwindSafe for CsiSnapshotBuilder
impl Send for CsiSnapshotBuilder
impl Sync for CsiSnapshotBuilder
impl Unpin for CsiSnapshotBuilder
impl UnwindSafe for CsiSnapshotBuilder
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