pub struct FileHash {
pub file_name: Option<String>,
pub hash: Option<String>,
pub hash_algorithm_name: Option<String>,
}Expand description
Used to provide the filename and hash of the SBOM file to be added to the catalog file.
Fields§
§file_name: Option<String>The filename of the SBOM.
hash: Option<String>The string hash of the SBOM file.
hash_algorithm_name: Option<String>The HashAlgorithmName used to generate the hash of the file.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for FileHash
impl<'de> Deserialize<'de> for FileHash
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 StructuralPartialEq for FileHash
Auto Trait Implementations§
impl Freeze for FileHash
impl RefUnwindSafe for FileHash
impl Send for FileHash
impl Sync for FileHash
impl Unpin for FileHash
impl UnwindSafe for FileHash
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