pub struct SseEvent {
pub name: String,
pub data: String,
pub at_ms: u64,
}Expand description
One parsed Server-Sent Event.
Fields§
§name: Stringevent: field, empty for data-only streams such as OpenAI’s.
data: String§at_ms: u64Milliseconds from request send to this event arriving.
Trait Implementations§
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