pub struct InventoryItemBuilder { /* private fields */ }Expand description
Builder for InventoryItem.
Implementations§
Source§impl InventoryItemBuilder
impl InventoryItemBuilder
Sourcepub fn description<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn description<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
A summary of the inventory item stating its purpose within the system.
pub fn implemented_components<VALUE: Into<Vec<ImplementedComponent>>>( &mut self, value: VALUE, ) -> &mut Self
pub fn links<VALUE: Into<Vec<Link>>>(&mut self, value: VALUE) -> &mut Self
pub fn props<VALUE: Into<Vec<Property>>>(&mut self, value: VALUE) -> &mut Self
pub fn remarks<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn responsible_parties<VALUE: Into<Vec<ResponsibleParty>>>( &mut self, value: VALUE, ) -> &mut Self
Sourcepub fn uuid<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn uuid<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
A machine-oriented, globally unique identifier with cross-instance scope that can be used to reference this inventory item elsewhere in this or other OSCAL instances. The locally defined UUID of the inventory item can be used to reference the data item locally or globally (e.g., in an imported OSCAL instance). This UUID should be assigned per-subject, which means it should be consistently used to identify the same subject across revisions of the document.
Sourcepub fn build(&self) -> Result<InventoryItem, InventoryItemBuilderError>
pub fn build(&self) -> Result<InventoryItem, InventoryItemBuilderError>
Trait Implementations§
Source§impl Clone for InventoryItemBuilder
impl Clone for InventoryItemBuilder
Source§fn clone(&self) -> InventoryItemBuilder
fn clone(&self) -> InventoryItemBuilder
Returns a duplicate 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 InventoryItemBuilder
impl RefUnwindSafe for InventoryItemBuilder
impl Send for InventoryItemBuilder
impl Sync for InventoryItemBuilder
impl Unpin for InventoryItemBuilder
impl UnwindSafe for InventoryItemBuilder
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