pub struct SubagentEventPayload {
pub type_name: String,
pub payload: Value,
}Expand description
Payload of a Event::SubagentEvent.
This is a generic {type, payload} envelope rather than a strongly-typed
Event because subagent events may be any wire message type.
Fields§
§type_name: StringThe wire type name of the subagent event.
payload: ValueThe raw payload of the subagent event.
Trait Implementations§
Source§impl Clone for SubagentEventPayload
impl Clone for SubagentEventPayload
Source§fn clone(&self) -> SubagentEventPayload
fn clone(&self) -> SubagentEventPayload
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 SubagentEventPayload
impl Debug for SubagentEventPayload
Source§impl<'de> Deserialize<'de> for SubagentEventPayload
impl<'de> Deserialize<'de> for SubagentEventPayload
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
impl Eq for SubagentEventPayload
Source§impl PartialEq for SubagentEventPayload
impl PartialEq for SubagentEventPayload
Source§fn eq(&self, other: &SubagentEventPayload) -> bool
fn eq(&self, other: &SubagentEventPayload) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SubagentEventPayload
impl Serialize for SubagentEventPayload
impl StructuralPartialEq for SubagentEventPayload
Auto Trait Implementations§
impl Freeze for SubagentEventPayload
impl RefUnwindSafe for SubagentEventPayload
impl Send for SubagentEventPayload
impl Sync for SubagentEventPayload
impl Unpin for SubagentEventPayload
impl UnsafeUnpin for SubagentEventPayload
impl UnwindSafe for SubagentEventPayload
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.