pub struct HttpEvent {
pub event: String,
pub data: String,
pub id: String,
pub retry: Option<u64>,
}
Expand description
HTTP server side event
Fields§
§event: String
The event name if given
data: String
The event data
id: String
The event id if given
retry: Option<u64>
Retry duration if given
Trait Implementations§
Source§impl<'de> Deserialize<'de> for HttpEvent
impl<'de> Deserialize<'de> for HttpEvent
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 HttpEvent
Auto Trait Implementations§
impl Freeze for HttpEvent
impl RefUnwindSafe for HttpEvent
impl Send for HttpEvent
impl Sync for HttpEvent
impl Unpin for HttpEvent
impl UnwindSafe for HttpEvent
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