pub struct CycloneDx {
Show 13 fields pub schema: Option<String>, pub bom_format: String, pub components: Option<Vec<Component>>, pub compositions: Option<Vec<Compositions>>, pub dependencies: Option<Vec<Dependency>>, pub external_references: Option<Vec<ExternalReference>>, pub metadata: Option<Metadata>, pub serial_number: Option<String>, pub services: Option<Vec<Service>>, pub signature: Option<String>, pub spec_version: String, pub version: i64, pub vulnerabilities: Option<Vec<Vulnerability>>,
}

Fields§

§schema: Option<String>§bom_format: String

Specifies the format of the BOM. This helps to identify the file as CycloneDX since BOMs do not have a filename convention nor does JSON schema support namespaces. This value MUST be “CycloneDX”.

§components: Option<Vec<Component>>

A list of software and hardware components.

§compositions: Option<Vec<Compositions>>

Compositions describe constituent parts (including components, services, and dependency relationships) and their completeness.

§dependencies: Option<Vec<Dependency>>

Provides the ability to document dependency relationships.

§external_references: Option<Vec<ExternalReference>>

External references provide a way to document systems, sites, and information that may be relevant but which are not included with the BOM.

§metadata: Option<Metadata>

Provides additional information about a BOM.

§serial_number: Option<String>

Every BOM generated SHOULD have a unique serial number, even if the contents of the BOM have not changed over time. If specified, the serial number MUST conform to RFC-4122. Use of serial numbers are RECOMMENDED.

§services: Option<Vec<Service>>

A list of services. This may include microservices, function-as-a-service, and other types of network or intra-process services.

§signature: Option<String>

Enveloped signature in JSON Signature Format (JSF).

§spec_version: String

The version of the CycloneDX specification a BOM conforms to (starting at version 1.2).

§version: i64

Whenever an existing BOM is modified, either manually or through automated processes, the version of the BOM SHOULD be incremented by 1. When a system is presented with multiple BOMs with identical serial numbers, the system SHOULD use the most recent version of the BOM. The default version is ‘1’.

§vulnerabilities: Option<Vec<Vulnerability>>

Vulnerabilities identified in components or services.

Trait Implementations§

source§

impl Clone for CycloneDx

source§

fn clone(&self) -> CycloneDx

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for CycloneDx

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for CycloneDx

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl PartialEq<CycloneDx> for CycloneDx

source§

fn eq(&self, other: &CycloneDx) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Serialize for CycloneDx

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl StructuralPartialEq for CycloneDx

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> DeserializeOwned for Twhere T: for<'de> Deserialize<'de>,