pub struct CsiNodeInfoBuilder { /* private fields */ }
Expand description
Builder for CsiNodeInfo
.
Implementations§
Source§impl CsiNodeInfoBuilder
impl CsiNodeInfoBuilder
pub fn id(&mut self, value: String) -> &mut Self
pub fn max_volumes(&mut self, value: i64) -> &mut Self
pub fn accessible_topology(&mut self, value: Option<CsiTopology>) -> &mut Self
Sourcepub fn requires_node_stage_volume(&mut self, value: bool) -> &mut Self
pub fn requires_node_stage_volume(&mut self, value: bool) -> &mut Self
RequiresNodeStageVolume indicates whether the client should Stage/Unstage volumes on this node.
Sourcepub fn supports_stats(&mut self, value: bool) -> &mut Self
pub fn supports_stats(&mut self, value: bool) -> &mut Self
SupportsStats indicates plugin support for GET_VOLUME_STATS
Sourcepub fn supports_expand(&mut self, value: bool) -> &mut Self
pub fn supports_expand(&mut self, value: bool) -> &mut Self
SupportsExpand indicates plugin support for EXPAND_VOLUME
Sourcepub fn supports_condition(&mut self, value: bool) -> &mut Self
pub fn supports_condition(&mut self, value: bool) -> &mut Self
SupportsCondition indicates plugin support for VOLUME_CONDITION
Sourcepub fn build(&self) -> Result<CsiNodeInfo, CsiNodeInfoBuilderError>
pub fn build(&self) -> Result<CsiNodeInfo, CsiNodeInfoBuilderError>
Trait Implementations§
Source§impl Clone for CsiNodeInfoBuilder
impl Clone for CsiNodeInfoBuilder
Source§fn clone(&self) -> CsiNodeInfoBuilder
fn clone(&self) -> CsiNodeInfoBuilder
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 CsiNodeInfoBuilder
impl RefUnwindSafe for CsiNodeInfoBuilder
impl Send for CsiNodeInfoBuilder
impl Sync for CsiNodeInfoBuilder
impl Unpin for CsiNodeInfoBuilder
impl UnwindSafe for CsiNodeInfoBuilder
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