pub struct DiscoverConfig {
pub source: String,
pub since: Option<SystemTime>,
}Expand description
Discovery configuration
Fields§
§source: StringThe source to locate the provider metadata.
This can be either a full path to a provider-metadata.json, or a base domain used by the CSAF metadata discovery process.
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 will always be reported.
Implementations§
Source§impl DiscoverConfig
impl DiscoverConfig
pub fn with_since(self, since: impl Into<Option<SystemTime>>) -> Self
Trait Implementations§
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.