pub struct CycloneDX { /* private fields */ }Implementations§
Source§impl CycloneDX
impl CycloneDX
pub fn new( metadata: Option<Metadata>, components: Option<Components>, services: Option<Services>, dependencies: Option<DependencyTypes>, ) -> Self
pub fn decode<R>(
reader: R,
format: CycloneDXFormatType,
) -> Result<CycloneDX, CycloneDXDecodeError>where
R: Read,
pub fn encode<W>(
writer: W,
cyclone_dx: CycloneDX,
format: CycloneDXFormatType,
) -> Result<(), CycloneDXEncodeError>where
W: Write,
pub const fn json_skip(&self, _: &str) -> bool
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CycloneDX
impl<'de> Deserialize<'de> for CycloneDX
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 CycloneDX
impl YaDeserialize for CycloneDX
fn deserialize<R: Read>(reader: &mut Deserializer<R>) -> Result<Self, String>
Source§impl YaSerialize for CycloneDX
impl YaSerialize for CycloneDX
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>
Auto Trait Implementations§
impl Freeze for CycloneDX
impl RefUnwindSafe for CycloneDX
impl Send for CycloneDX
impl Sync for CycloneDX
impl Unpin for CycloneDX
impl UnwindSafe for CycloneDX
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