pub struct UpdateItemDocument {
pub name: String,
pub current: String,
pub target: Option<String>,
pub outcome: OutcomeToken,
pub reason: String,
pub advisory_ids: Vec<String>,
pub cooldown_fallback: Option<CooldownFallbackDocument>,
}Expand description
One update plan item’s JSON shape.
Fields§
§name: StringThe dependency’s declared (raw) name.
current: StringThe current (resolved in-use, or declared) version.
target: Option<String>The version this item’s edit would move the dependency to, when applicable — null
when the item has no concrete target (crate::update::PlannedUpdateItem::target
returns None).
outcome: OutcomeTokenOne of applied / skipped / requires-lockfile-update / unfixable.
reason: StringA one-line human-readable reason for outcome.
advisory_ids: Vec<String>OSV advisory ids this item resolves — non-empty only in --security-only mode.
cooldown_fallback: Option<CooldownFallbackDocument>Spec 075 FR-013: this item’s cooldown-fallback attribution, when one was consulted.
Additive (NFR-005) — omitted entirely, not null, when the item has none.
Trait Implementations§
Source§impl Debug for UpdateItemDocument
impl Debug for UpdateItemDocument
Source§impl<'de> Deserialize<'de> for UpdateItemDocument
impl<'de> Deserialize<'de> for UpdateItemDocument
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
Source§impl PartialEq for UpdateItemDocument
impl PartialEq for UpdateItemDocument
Source§impl Serialize for UpdateItemDocument
impl Serialize for UpdateItemDocument
impl StructuralPartialEq for UpdateItemDocument
Auto Trait Implementations§
impl Freeze for UpdateItemDocument
impl RefUnwindSafe for UpdateItemDocument
impl Send for UpdateItemDocument
impl Sync for UpdateItemDocument
impl Unpin for UpdateItemDocument
impl UnsafeUnpin for UpdateItemDocument
impl UnwindSafe for UpdateItemDocument
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
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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