pub struct RetrievedAdvisory {
pub discovered: DiscoveredAdvisory,
pub data: Bytes,
pub signature: Option<String>,
pub sha256: Option<RetrievedDigest<Sha256>>,
pub sha512: Option<RetrievedDigest<Sha512>>,
pub metadata: RetrievalMetadata,
}Expand description
A retrieved (but unverified) advisory
Fields§
§discovered: DiscoveredAdvisoryThe discovered advisory
data: BytesThe advisory data
signature: Option<String>Signature data
sha256: Option<RetrievedDigest<Sha256>>SHA-256 digest
sha512: Option<RetrievedDigest<Sha512>>SHA-512 digest
metadata: RetrievalMetadataMetadata from the retrieval process
Trait Implementations§
Source§impl AsDiscovered for RetrievedAdvisory
impl AsDiscovered for RetrievedAdvisory
fn as_discovered(&self) -> &DiscoveredAdvisory
Source§impl AsRetrieved for RetrievedAdvisory
impl AsRetrieved for RetrievedAdvisory
fn as_retrieved(&self) -> &RetrievedAdvisory
Source§impl Clone for RetrievedAdvisory
impl Clone for RetrievedAdvisory
Source§fn clone(&self) -> RetrievedAdvisory
fn clone(&self) -> RetrievedAdvisory
Returns a copy 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 RetrievedAdvisory
impl Debug for RetrievedAdvisory
Source§impl Deref for RetrievedAdvisory
impl Deref for RetrievedAdvisory
Source§impl DerefMut for RetrievedAdvisory
impl DerefMut for RetrievedAdvisory
Auto Trait Implementations§
impl !Freeze for RetrievedAdvisory
impl RefUnwindSafe for RetrievedAdvisory
impl Send for RetrievedAdvisory
impl Sync for RetrievedAdvisory
impl Unpin for RetrievedAdvisory
impl UnwindSafe for RetrievedAdvisory
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,
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.