pub struct FailedPatch {
pub purl: String,
pub reason: String,
}Expand description
One entry per manifest PURL that did NOT pass verification. The
reason is a short snake_case tag the CLI can route on (matches
the error_code convention used by json_envelope::PatchEvent).
Fields§
§purl: String§reason: StringTrait Implementations§
Source§impl Clone for FailedPatch
impl Clone for FailedPatch
Source§fn clone(&self) -> FailedPatch
fn clone(&self) -> FailedPatch
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FailedPatch
impl Debug for FailedPatch
Source§impl PartialEq for FailedPatch
impl PartialEq for FailedPatch
Source§fn eq(&self, other: &FailedPatch) -> bool
fn eq(&self, other: &FailedPatch) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for FailedPatch
impl StructuralPartialEq for FailedPatch
Auto Trait Implementations§
impl Freeze for FailedPatch
impl RefUnwindSafe for FailedPatch
impl Send for FailedPatch
impl Sync for FailedPatch
impl Unpin for FailedPatch
impl UnsafeUnpin for FailedPatch
impl UnwindSafe for FailedPatch
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 more