pub struct LifecycleOutcomeV1 {
pub target: String,
pub resource: Option<String>,
pub status: LifecycleStatus,
pub effects: Vec<LifecycleEffect>,
pub diagnostic_codes: Vec<String>,
}Fields§
§target: StringCanonical lifecycle identity, for example app/ghostty.
resource: Option<String>Logical resource name relative to the target, never an absolute destination path.
status: LifecycleStatus§effects: Vec<LifecycleEffect>§diagnostic_codes: Vec<String>Stable safe codes only. Raw error messages do not belong in this reusable contract.
Implementations§
Source§impl LifecycleOutcomeV1
impl LifecycleOutcomeV1
pub fn new( target: impl Into<String>, resource: Option<impl Into<String>>, status: LifecycleStatus, effects: impl IntoIterator<Item = LifecycleEffect>, ) -> Self
pub fn with_diagnostic_code(self, code: impl Into<String>) -> Self
Trait Implementations§
Source§impl Clone for LifecycleOutcomeV1
impl Clone for LifecycleOutcomeV1
Source§fn clone(&self) -> LifecycleOutcomeV1
fn clone(&self) -> LifecycleOutcomeV1
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 LifecycleOutcomeV1
impl Debug for LifecycleOutcomeV1
Source§impl<'de> Deserialize<'de> for LifecycleOutcomeV1
impl<'de> Deserialize<'de> for LifecycleOutcomeV1
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 Eq for LifecycleOutcomeV1
Source§impl PartialEq for LifecycleOutcomeV1
impl PartialEq for LifecycleOutcomeV1
Source§impl Serialize for LifecycleOutcomeV1
impl Serialize for LifecycleOutcomeV1
impl StructuralPartialEq for LifecycleOutcomeV1
Auto Trait Implementations§
impl Freeze for LifecycleOutcomeV1
impl RefUnwindSafe for LifecycleOutcomeV1
impl Send for LifecycleOutcomeV1
impl Sync for LifecycleOutcomeV1
impl Unpin for LifecycleOutcomeV1
impl UnsafeUnpin for LifecycleOutcomeV1
impl UnwindSafe for LifecycleOutcomeV1
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.