pub struct StreamPayload {
pub agent_id: String,
pub chunk_type: StreamChunkType,
pub content: String,
}Expand description
Payload for agent output stream chunks.
Fields§
§agent_id: StringID of the agent producing the stream.
chunk_type: StreamChunkTypeType of stream chunk.
content: StringChunk content text.
Trait Implementations§
Source§impl Clone for StreamPayload
impl Clone for StreamPayload
Source§fn clone(&self) -> StreamPayload
fn clone(&self) -> StreamPayload
Returns a duplicate of the value. Read more
1.0.0 · 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 StreamPayload
impl Debug for StreamPayload
Source§impl<'de> Deserialize<'de> for StreamPayload
impl<'de> Deserialize<'de> for StreamPayload
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 StreamPayload
impl RefUnwindSafe for StreamPayload
impl Send for StreamPayload
impl Sync for StreamPayload
impl Unpin for StreamPayload
impl UnsafeUnpin for StreamPayload
impl UnwindSafe for StreamPayload
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