Struct sbom_walker::discover::DiscoverConfig
source · pub struct DiscoverConfig {
pub source: String,
pub since: Option<SystemTime>,
pub keys: Vec<Key>,
}Expand description
Discovery configuration
Fields§
§source: StringThe URL to locate the provider metadata.
If full is true, this must be the full path to the provider-metadata.json, otherwise
it /.well-known/csaf/provider-metadata.json will be appended.
since: Option<SystemTime>Only report documents which have changed since the provided date. If a document has no
change information, or this field is None, it wil always be reported.
keys: Vec<Key>Keys which can be used for validation
Implementations§
source§impl DiscoverConfig
impl DiscoverConfig
pub fn with_since(self, since: impl Into<Option<SystemTime>>) -> Self
Auto Trait Implementations§
impl Freeze for DiscoverConfig
impl RefUnwindSafe for DiscoverConfig
impl Send for DiscoverConfig
impl Sync for DiscoverConfig
impl Unpin for DiscoverConfig
impl UnwindSafe for DiscoverConfig
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