pub struct SbomComponent { /* private fields */ }Expand description
SBOM component metadata.
Implementations§
Source§impl SbomComponent
impl SbomComponent
Sourcepub const fn new(
name: SbomComponentName,
version: SbomComponentVersion,
) -> SbomComponent
pub const fn new( name: SbomComponentName, version: SbomComponentVersion, ) -> SbomComponent
Creates SBOM component metadata.
Sourcepub const fn name(&self) -> &SbomComponentName
pub const fn name(&self) -> &SbomComponentName
Returns the component name.
Sourcepub const fn version(&self) -> &SbomComponentVersion
pub const fn version(&self) -> &SbomComponentVersion
Returns the component version.
Trait Implementations§
Source§impl Clone for SbomComponent
impl Clone for SbomComponent
Source§fn clone(&self) -> SbomComponent
fn clone(&self) -> SbomComponent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SbomComponent
impl Debug for SbomComponent
Source§impl PartialEq for SbomComponent
impl PartialEq for SbomComponent
Source§fn eq(&self, other: &SbomComponent) -> bool
fn eq(&self, other: &SbomComponent) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for SbomComponent
impl StructuralPartialEq for SbomComponent
Auto Trait Implementations§
impl Freeze for SbomComponent
impl RefUnwindSafe for SbomComponent
impl Send for SbomComponent
impl Sync for SbomComponent
impl Unpin for SbomComponent
impl UnsafeUnpin for SbomComponent
impl UnwindSafe for SbomComponent
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