pub struct SseMessage {
pub event: Option<String>,
pub data: String,
pub id: Option<String>,
}Expand description
A parsed SSE message.
Fields§
§event: Option<String>The event field, or None when the event used the default type.
data: StringThe data field, with multiple data lines joined by \n.
id: Option<String>The most recent id field seen before this message.
Trait Implementations§
Source§impl Clone for SseMessage
impl Clone for SseMessage
Source§impl Debug for SseMessage
impl Debug for SseMessage
impl Eq for SseMessage
Source§impl PartialEq for SseMessage
impl PartialEq for SseMessage
impl StructuralPartialEq for SseMessage
Auto Trait Implementations§
impl Freeze for SseMessage
impl RefUnwindSafe for SseMessage
impl Send for SseMessage
impl Sync for SseMessage
impl Unpin for SseMessage
impl UnsafeUnpin for SseMessage
impl UnwindSafe for SseMessage
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.