pub struct NodeDeviceResourceBuilder { /* private fields */ }
Expand description
Builder for NodeDeviceResource
.
Implementations§
Source§impl NodeDeviceResourceBuilder
impl NodeDeviceResourceBuilder
Sourcepub fn name(&mut self, value: String) -> &mut Self
pub fn name(&mut self, value: String) -> &mut Self
Name specifies the specific model of the device
Sourcepub fn instances(&mut self, value: Vec<NodeDevice>) -> &mut Self
pub fn instances(&mut self, value: Vec<NodeDevice>) -> &mut Self
Instances are list of the devices matching the vendor/type/name
pub fn attributes(&mut self, value: HashMap<String, Attribute>) -> &mut Self
Sourcepub fn build(
&self,
) -> Result<NodeDeviceResource, NodeDeviceResourceBuilderError>
pub fn build( &self, ) -> Result<NodeDeviceResource, NodeDeviceResourceBuilderError>
Trait Implementations§
Source§impl Clone for NodeDeviceResourceBuilder
impl Clone for NodeDeviceResourceBuilder
Source§fn clone(&self) -> NodeDeviceResourceBuilder
fn clone(&self) -> NodeDeviceResourceBuilder
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 NodeDeviceResourceBuilder
impl RefUnwindSafe for NodeDeviceResourceBuilder
impl Send for NodeDeviceResourceBuilder
impl Sync for NodeDeviceResourceBuilder
impl Unpin for NodeDeviceResourceBuilder
impl UnwindSafe for NodeDeviceResourceBuilder
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