pub struct SseEvent {
pub event: Option<String>,
pub data: Option<String>,
pub id: Option<String>,
pub retry: Option<u32>,
pub delay: Option<Delay>,
}Expand description
A single Server-Sent Event in an HttpSseResponse.
Maps to the events[] entries of the httpSseResponse wire shape.
Fields§
§event: Option<String>§data: Option<String>§id: Option<String>§retry: Option<u32>§delay: Option<Delay>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SseEvent
impl<'de> Deserialize<'de> for SseEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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