#[repr(C)]pub union EventPayload {
pub empty: EventEmpty,
pub message: EventMessage,
pub tool_call: EventToolCall,
pub tool_result: EventToolResult,
pub error: EventError,
pub data: EventData,
}Expand description
Payload union for StablePluginEvent. All variants are #[repr(C)] structs
of StbString / primitives (Copy), so the union is Copy. Discriminate by
StablePluginEvent::tag before reading.
Fields§
§empty: EventEmpty§message: EventMessage§tool_call: EventToolCall§tool_result: EventToolResult§error: EventError§data: EventDataTrait Implementations§
Source§impl Clone for EventPayload
impl Clone for EventPayload
Source§fn clone(&self) -> EventPayload
fn clone(&self) -> EventPayload
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 moreimpl Copy for EventPayload
Auto Trait Implementations§
impl Freeze for EventPayload
impl RefUnwindSafe for EventPayload
impl Send for EventPayload
impl Sync for EventPayload
impl Unpin for EventPayload
impl UnsafeUnpin for EventPayload
impl UnwindSafe for EventPayload
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