pub struct CliOutputEnvelope<'a, T: Serialize> {
pub contract_version: &'static str,
pub envelope_version: &'static str,
pub command: &'a str,
pub status: &'static str,
pub exit_code: i32,
pub exit_category: CliExitCategory,
pub generated_at: String,
pub engine_version: &'static str,
pub data: &'a T,
pub warnings: Vec<String>,
pub errors: Vec<CliErrorPayload>,
}Fields§
§contract_version: &'static str§envelope_version: &'static str§command: &'a str§status: &'static str§exit_code: i32§exit_category: CliExitCategory§generated_at: String§engine_version: &'static str§data: &'a T§warnings: Vec<String>§errors: Vec<CliErrorPayload>Implementations§
Source§impl<'a, T: Serialize> CliOutputEnvelope<'a, T>
impl<'a, T: Serialize> CliOutputEnvelope<'a, T>
Trait Implementations§
Source§impl<'a, T: Clone + Serialize> Clone for CliOutputEnvelope<'a, T>
impl<'a, T: Clone + Serialize> Clone for CliOutputEnvelope<'a, T>
Source§fn clone(&self) -> CliOutputEnvelope<'a, T>
fn clone(&self) -> CliOutputEnvelope<'a, T>
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 moreAuto Trait Implementations§
impl<'a, T> Freeze for CliOutputEnvelope<'a, T>
impl<'a, T> RefUnwindSafe for CliOutputEnvelope<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for CliOutputEnvelope<'a, T>where
T: Sync,
impl<'a, T> Sync for CliOutputEnvelope<'a, T>where
T: Sync,
impl<'a, T> Unpin for CliOutputEnvelope<'a, T>
impl<'a, T> UnsafeUnpin for CliOutputEnvelope<'a, T>
impl<'a, T> UnwindSafe for CliOutputEnvelope<'a, T>where
T: RefUnwindSafe,
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