pub struct AgentSidebandEvent {
pub category: AgentSidebandEventCategory,
pub kind: String,
pub payload: Value,
pub metadata: Map<String, Value>,
}Expand description
Typed view of an application sideband event carried by AgentStreamEvent::Custom.
Fields§
§category: AgentSidebandEventCategoryStable event category.
kind: StringEvent type.
payload: ValueEvent payload.
metadata: Map<String, Value>Event metadata.
Implementations§
Source§impl AgentSidebandEvent
impl AgentSidebandEvent
Sourcepub fn from_agent_event(event: &AgentEvent) -> Option<AgentSidebandEvent>
pub fn from_agent_event(event: &AgentEvent) -> Option<AgentSidebandEvent>
Build a typed sideband event when the context event kind belongs to the stable taxonomy.
Sourcepub fn category_for_kind(kind: &str) -> Option<AgentSidebandEventCategory>
pub fn category_for_kind(kind: &str) -> Option<AgentSidebandEventCategory>
Classify a context event kind into the stable sideband taxonomy.
Trait Implementations§
Source§impl Clone for AgentSidebandEvent
impl Clone for AgentSidebandEvent
Source§fn clone(&self) -> AgentSidebandEvent
fn clone(&self) -> AgentSidebandEvent
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 AgentSidebandEvent
impl Debug for AgentSidebandEvent
Source§impl<'de> Deserialize<'de> for AgentSidebandEvent
impl<'de> Deserialize<'de> for AgentSidebandEvent
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<AgentSidebandEvent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<AgentSidebandEvent, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for AgentSidebandEvent
Source§impl PartialEq for AgentSidebandEvent
impl PartialEq for AgentSidebandEvent
Source§impl Serialize for AgentSidebandEvent
impl Serialize for AgentSidebandEvent
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for AgentSidebandEvent
Auto Trait Implementations§
impl Freeze for AgentSidebandEvent
impl RefUnwindSafe for AgentSidebandEvent
impl Send for AgentSidebandEvent
impl Sync for AgentSidebandEvent
impl Unpin for AgentSidebandEvent
impl UnsafeUnpin for AgentSidebandEvent
impl UnwindSafe for AgentSidebandEvent
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