pub struct YankEntry {
pub name: String,
pub version: String,
pub reason: Option<String>,
}Expand description
One entry in a reverse-topological yank plan.
Both Serialize and Deserialize because plan files are meant to
round-trip: planner writes JSON, operator reviews, executor reads
it back (#98 PR 5).
Fields§
§name: String§version: String§reason: Option<String>If the receipt marked this package compromised, the reason string surfaces here so the operator running the plan sees per-crate context (CVE id, ticket, etc.) without having to cross-reference the receipt.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for YankEntry
impl<'de> Deserialize<'de> for YankEntry
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for YankEntry
impl RefUnwindSafe for YankEntry
impl Send for YankEntry
impl Sync for YankEntry
impl Unpin for YankEntry
impl UnsafeUnpin for YankEntry
impl UnwindSafe for YankEntry
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