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
DryRunData<'a, P>: Freeze,
impl<'a, P> RefUnwindSafe for DryRunEnvelope<'a, P>where
DryRunData<'a, P>: RefUnwindSafe,
impl<'a, P> Send for DryRunEnvelope<'a, P>where
DryRunData<'a, P>: Send,
impl<'a, P> Sync for DryRunEnvelope<'a, P>where
DryRunData<'a, P>: Sync,
impl<'a, P> Unpin for DryRunEnvelope<'a, P>where
DryRunData<'a, P>: Unpin,
impl<'a, P> UnsafeUnpin for DryRunEnvelope<'a, P>where
DryRunData<'a, P>: UnsafeUnpin,
impl<'a, P> UnwindSafe for DryRunEnvelope<'a, P>where
DryRunData<'a, 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