pub struct Component {Show 20 fields
pub component_type: Classification,
pub mime_type: Option<String>,
pub bom_ref: Option<String>,
pub supplier: Option<OrganizationalEntity>,
pub author: Option<String>,
pub publisher: Option<String>,
pub group: Option<String>,
pub name: Option<String>,
pub version: Option<String>,
pub description: Option<String>,
pub scope: Option<Scope>,
pub hashes: Vec<HashType>,
pub licenses: Vec<Licenses>,
pub copyright: Option<String>,
pub purl: Option<String>,
pub swid: Option<SwidType>,
pub modified: Option<bool>,
pub pedigree: Option<PedigreeType>,
pub external_references: Vec<ExternalReference>,
pub components: Vec<Component>,
}
Fields§
§component_type: Classification
§mime_type: Option<String>
§bom_ref: Option<String>
§supplier: Option<OrganizationalEntity>
§publisher: Option<String>
§group: Option<String>
§name: Option<String>
§version: Option<String>
§description: Option<String>
§scope: Option<Scope>
§hashes: Vec<HashType>
§licenses: Vec<Licenses>
§copyright: Option<String>
§purl: Option<String>
§swid: Option<SwidType>
§modified: Option<bool>
§pedigree: Option<PedigreeType>
§external_references: Vec<ExternalReference>
§components: Vec<Component>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Component
impl<'de> Deserialize<'de> for Component
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
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 YaDeserialize for Component
impl YaDeserialize for Component
fn deserialize<R: Read>(reader: &mut Deserializer<R>) -> Result<Self, String>
Source§impl YaSerialize for Component
impl YaSerialize for Component
fn serialize<W: Write>(&self, writer: &mut Serializer<W>) -> Result<(), String>
fn serialize_attributes( &self, source_attributes: Vec<OwnedAttribute>, source_namespace: Namespace, ) -> Result<(Vec<OwnedAttribute>, Namespace), String>
impl StructuralPartialEq for Component
Auto Trait Implementations§
impl Freeze for Component
impl RefUnwindSafe for Component
impl Send for Component
impl Sync for Component
impl Unpin 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