pub struct SbomFormatVersion(pub u32);Expand description
Typed version of a SBOM format version number.
Tuple Fields§
§0: u32Trait Implementations§
Source§impl Clone for SbomFormatVersion
impl Clone for SbomFormatVersion
impl Copy for SbomFormatVersion
Source§impl Debug for SbomFormatVersion
impl Debug for SbomFormatVersion
Source§impl<'de> Deserialize<'de> for SbomFormatVersion
impl<'de> Deserialize<'de> for SbomFormatVersion
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
impl Eq for SbomFormatVersion
Source§impl Ord for SbomFormatVersion
impl Ord for SbomFormatVersion
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for SbomFormatVersion
impl PartialEq for SbomFormatVersion
Source§impl PartialOrd for SbomFormatVersion
impl PartialOrd for SbomFormatVersion
Source§impl Serialize for SbomFormatVersion
impl Serialize for SbomFormatVersion
impl StructuralPartialEq for SbomFormatVersion
Auto Trait Implementations§
impl Forget for SbomFormatVersion
impl Freeze for SbomFormatVersion
impl Move for SbomFormatVersion
impl RefUnwindSafe for SbomFormatVersion
impl Send for SbomFormatVersion
impl Sync for SbomFormatVersion
impl Unpin for SbomFormatVersion
impl UnsafeUnpin for SbomFormatVersion
impl UnwindSafe for SbomFormatVersion
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Serialize for T
impl<T> Serialize for T
fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<(), Error>
fn do_erased_serialize( &self, serializer: &mut dyn Serializer, ) -> Result<(), ErrorImpl>
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 4 bytes