#[non_exhaustive]pub struct SbomReferenceIntotoPredicate {
pub referrer_id: String,
pub location: String,
pub mime_type: String,
pub digest: HashMap<String, String>,
/* private fields */
}Expand description
A predicate which describes the SBOM being referenced.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.referrer_id: StringThe person or system referring this predicate to the consumer.
location: StringThe location of the SBOM.
mime_type: StringThe mime type of the SBOM.
digest: HashMap<String, String>A map of algorithm to digest of the contents of the SBOM.
Implementations§
Source§impl SbomReferenceIntotoPredicate
impl SbomReferenceIntotoPredicate
pub fn new() -> Self
Sourcepub fn set_referrer_id<T: Into<String>>(self, v: T) -> Self
pub fn set_referrer_id<T: Into<String>>(self, v: T) -> Self
Sets the value of referrer_id.
§Example
ⓘ
let x = SbomReferenceIntotoPredicate::new().set_referrer_id("example");Sourcepub fn set_location<T: Into<String>>(self, v: T) -> Self
pub fn set_location<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_mime_type<T: Into<String>>(self, v: T) -> Self
pub fn set_mime_type<T: Into<String>>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for SbomReferenceIntotoPredicate
impl Clone for SbomReferenceIntotoPredicate
Source§fn clone(&self) -> SbomReferenceIntotoPredicate
fn clone(&self) -> SbomReferenceIntotoPredicate
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SbomReferenceIntotoPredicate
impl Debug for SbomReferenceIntotoPredicate
Source§impl Default for SbomReferenceIntotoPredicate
impl Default for SbomReferenceIntotoPredicate
Source§fn default() -> SbomReferenceIntotoPredicate
fn default() -> SbomReferenceIntotoPredicate
Returns the “default value” for a type. Read more
Source§impl PartialEq for SbomReferenceIntotoPredicate
impl PartialEq for SbomReferenceIntotoPredicate
Source§fn eq(&self, other: &SbomReferenceIntotoPredicate) -> bool
fn eq(&self, other: &SbomReferenceIntotoPredicate) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SbomReferenceIntotoPredicate
Auto Trait Implementations§
impl Freeze for SbomReferenceIntotoPredicate
impl RefUnwindSafe for SbomReferenceIntotoPredicate
impl Send for SbomReferenceIntotoPredicate
impl Sync for SbomReferenceIntotoPredicate
impl Unpin for SbomReferenceIntotoPredicate
impl UnsafeUnpin for SbomReferenceIntotoPredicate
impl UnwindSafe for SbomReferenceIntotoPredicate
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