pub struct ApplyItem {
pub component_id: String,
pub current_version: String,
pub proposed_version: String,
pub status: ApplyStatus,
pub error_message: String,
pub dependencies: Vec<String>,
pub was_selected: bool,
}Expand description
An item that has been processed by the apply engine.
Fields§
§component_id: StringComponent ID.
current_version: StringCurrent version before apply.
proposed_version: StringVersion that was applied (or attempted).
status: ApplyStatusOutcome of the apply operation.
error_message: StringError message if failed or blocked.
dependencies: Vec<String>Component IDs that this item depends on.
was_selected: boolWhether this item was selected for apply.
Implementations§
Source§impl ApplyItem
impl ApplyItem
Sourcepub fn new(
component_id: impl Into<String>,
current_version: impl Into<String>,
proposed_version: impl Into<String>,
status: ApplyStatus,
) -> Self
pub fn new( component_id: impl Into<String>, current_version: impl Into<String>, proposed_version: impl Into<String>, status: ApplyStatus, ) -> Self
Create a new apply item with the given status.
Sourcepub fn held_back(item: &PlannerItem) -> Self
pub fn held_back(item: &PlannerItem) -> Self
Create a held-back item (user deselected).
Sourcepub fn blocked_by_failure(
item: &PlannerItem,
blocker_id: &str,
reason: &str,
) -> Self
pub fn blocked_by_failure( item: &PlannerItem, blocker_id: &str, reason: &str, ) -> Self
Create a blocked-by-failure item.
Sourcepub fn skipped(item: &PlannerItem) -> Self
pub fn skipped(item: &PlannerItem) -> Self
Create a skipped item.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ApplyItem
impl<'de> Deserialize<'de> for ApplyItem
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
impl StructuralPartialEq for ApplyItem
Auto Trait Implementations§
impl Freeze for ApplyItem
impl RefUnwindSafe for ApplyItem
impl Send for ApplyItem
impl Sync for ApplyItem
impl Unpin for ApplyItem
impl UnsafeUnpin for ApplyItem
impl UnwindSafe for ApplyItem
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,
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