pub struct Component {
pub component_type: String,
pub bom_ref: String,
pub name: String,
pub version: String,
pub hashes: Vec<Hash>,
pub properties: Vec<Property>,
}Expand description
A CycloneDX component.
Fields§
§component_type: StringCycloneDX component type (application, library, …).
bom_ref: StringStable reference used by the dependencies graph.
name: StringHuman-readable component name.
version: StringComponent version (file size for binary artifacts, "unknown" for
imports whose version synth cannot know).
hashes: Vec<Hash>Cryptographic hashes of the component, when synth has the bytes.
properties: Vec<Property>Free-form key/value properties — byte size, target triple, backend, import kind, etc.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Component
impl RefUnwindSafe for Component
impl Send for Component
impl Sync for Component
impl Unpin for Component
impl UnsafeUnpin for Component
impl UnwindSafe for Component
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