pub struct SseEvent {
pub event: Option<String>,
pub id: Option<String>,
pub retry: Option<u64>,
pub data: String,
}Expand description
Parsed SSE event from OpenCode streaming endpoints.
Fields§
§event: Option<String>Event type (event: line).
id: Option<String>Event id (id: line).
retry: Option<u64>Retry hint (retry: line).
data: StringEvent data payload (joined data: lines).
Trait Implementations§
impl Eq for SseEvent
impl StructuralPartialEq for SseEvent
Auto Trait Implementations§
impl Freeze for SseEvent
impl RefUnwindSafe for SseEvent
impl Send for SseEvent
impl Sync for SseEvent
impl Unpin for SseEvent
impl UnsafeUnpin for SseEvent
impl UnwindSafe for SseEvent
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