pub struct StreamEvent {
pub event: String,
pub chunk_type: String,
pub content: String,
pub metadata: Option<Metadata>,
pub raw: Vec<u8>,
}Expand description
One decoded server-sent event from the intelligence stream.
Fields§
§event: StringThe SSE event: name, when present.
chunk_type: Stringchunk_type field from the JSON body, when present.
content: Stringcontent field from the JSON body, when present.
metadata: Option<Metadata>Free-form metadata attached to the chunk.
raw: Vec<u8>Raw JSON body bytes.
Trait Implementations§
Source§impl Clone for StreamEvent
impl Clone for StreamEvent
Source§impl Debug for StreamEvent
impl Debug for StreamEvent
Auto Trait Implementations§
impl Freeze for StreamEvent
impl RefUnwindSafe for StreamEvent
impl Send for StreamEvent
impl Sync for StreamEvent
impl Unpin for StreamEvent
impl UnsafeUnpin for StreamEvent
impl UnwindSafe for StreamEvent
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