pub struct ComponentBuilder { /* private fields */ }Expand description
Builder for Component.
Implementations§
Source§impl ComponentBuilder
impl ComponentBuilder
pub fn component_type(&mut self, value: Classification) -> &mut Self
pub fn mime_type(&mut self, value: Option<String>) -> &mut Self
pub fn bom_ref(&mut self, value: Option<String>) -> &mut Self
pub fn supplier(&mut self, value: Option<OrganizationalEntity>) -> &mut Self
pub fn publisher(&mut self, value: Option<String>) -> &mut Self
pub fn group(&mut self, value: Option<String>) -> &mut Self
pub fn name(&mut self, value: Option<String>) -> &mut Self
pub fn version(&mut self, value: Option<String>) -> &mut Self
pub fn description(&mut self, value: Option<String>) -> &mut Self
pub fn scope(&mut self, value: Option<Scope>) -> &mut Self
pub fn hashes(&mut self, value: Vec<HashType>) -> &mut Self
pub fn licenses(&mut self, value: Vec<Licenses>) -> &mut Self
pub fn copyright(&mut self, value: Option<String>) -> &mut Self
pub fn purl(&mut self, value: Option<String>) -> &mut Self
pub fn swid(&mut self, value: Option<SwidType>) -> &mut Self
pub fn modified(&mut self, value: Option<bool>) -> &mut Self
pub fn pedigree(&mut self, value: Option<PedigreeType>) -> &mut Self
pub fn external_references( &mut self, value: Vec<ExternalReference>, ) -> &mut Self
pub fn components(&mut self, value: Vec<Component>) -> &mut Self
Trait Implementations§
Source§impl Clone for ComponentBuilder
impl Clone for ComponentBuilder
Source§fn clone(&self) -> ComponentBuilder
fn clone(&self) -> ComponentBuilder
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 moreSource§impl Default for ComponentBuilder
impl Default for ComponentBuilder
Source§fn default() -> ComponentBuilder
fn default() -> ComponentBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ComponentBuilder
impl RefUnwindSafe for ComponentBuilder
impl Send for ComponentBuilder
impl Sync for ComponentBuilder
impl Unpin for ComponentBuilder
impl UnwindSafe for ComponentBuilder
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