pub struct JsonEnvelope<'a, T: Serialize + ?Sized> {
pub ok: bool,
pub profile: Option<&'a str>,
pub data: &'a T,
}Expand description
LOCKED success envelope: exactly the top-level fields ok, profile,
data — changing the set is a breaking change for agents.
Fields§
§ok: boolAlways true in this envelope.
profile: Option<&'a str>Active profile echoed in every output (CORE-01); None until config
resolution lands.
data: &'a TThe command’s payload.
Trait Implementations§
Auto Trait Implementations§
impl<'a, T> Freeze for JsonEnvelope<'a, T>
impl<'a, T> RefUnwindSafe for JsonEnvelope<'a, T>
impl<'a, T> Send for JsonEnvelope<'a, T>
impl<'a, T> Sync for JsonEnvelope<'a, T>
impl<'a, T> Unpin for JsonEnvelope<'a, T>
impl<'a, T> UnsafeUnpin for JsonEnvelope<'a, T>
impl<'a, T> UnwindSafe for JsonEnvelope<'a, T>
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