pub struct DryRunEnvelope<'a, P: Serialize> {
pub schema_version: u32,
pub ok: bool,
pub command: &'a str,
pub dry_run: bool,
pub data: DryRunData<'a, P>,
pub duration_ms: u64,
}Expand description
JSON dry-run success envelope with planned URL and params.
P is a typed per-command params struct (Serialize). No intermediate
serde_json::Value on the agent write path.
Fields§
§schema_version: u32Envelope schema version.
ok: boolAlways true for dry-run envelopes.
command: &'a strCommand name that would have run.
dry_run: boolAlways true — marks the response as a dry-run plan.
data: DryRunData<'a, P>Planned request details.
duration_ms: u64Wall-clock duration until the plan was emitted.
Trait Implementations§
Auto Trait Implementations§
impl<'a, P> Freeze for DryRunEnvelope<'a, P>where
P: Freeze,
impl<'a, P> RefUnwindSafe for DryRunEnvelope<'a, P>where
P: RefUnwindSafe,
impl<'a, P> Send for DryRunEnvelope<'a, P>where
P: Send,
impl<'a, P> Sync for DryRunEnvelope<'a, P>where
P: Sync,
impl<'a, P> Unpin for DryRunEnvelope<'a, P>where
P: Unpin,
impl<'a, P> UnsafeUnpin for DryRunEnvelope<'a, P>where
P: UnsafeUnpin,
impl<'a, P> UnwindSafe for DryRunEnvelope<'a, P>where
P: UnwindSafe,
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> 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