pub struct SuccessEnvelope {
pub ok: bool,
pub event: String,
pub fields: BTreeMap<String, Value>,
}Expand description
Agent-first success envelope: { "ok": true, "event": …, …fields }.
Extra fields are merged from a map so callers can attach event-specific keys without proliferating one struct per CRUD event.
Fields§
§ok: boolAlways true for success envelopes.
event: StringEvent discriminator (vps-added, scp-transfer, …).
fields: BTreeMap<String, Value>Additional event fields (flattened at serialize time via map merge).
Implementations§
Trait Implementations§
Source§impl Clone for SuccessEnvelope
impl Clone for SuccessEnvelope
Source§fn clone(&self) -> SuccessEnvelope
fn clone(&self) -> SuccessEnvelope
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 SuccessEnvelope
impl Debug for SuccessEnvelope
Source§impl<'de> Deserialize<'de> for SuccessEnvelope
impl<'de> Deserialize<'de> for SuccessEnvelope
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
Auto Trait Implementations§
impl Freeze for SuccessEnvelope
impl RefUnwindSafe for SuccessEnvelope
impl Send for SuccessEnvelope
impl Sync for SuccessEnvelope
impl Unpin for SuccessEnvelope
impl UnsafeUnpin for SuccessEnvelope
impl UnwindSafe for SuccessEnvelope
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