pub struct SseEvent {
pub event: Option<String>,
pub data: String,
pub id: Option<String>,
}Expand description
One parsed SSE event (RFC 6455-style text/event-stream). For MCP, data is
a JSON-RPC message; event/id are the optional SSE field lines.
Fields§
§event: Option<String>§data: String§id: Option<String>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