pub struct Event {
pub event: Option<String>,
pub data: String,
pub id: Option<String>,
}Expand description
One server-sent event, before its data is decoded.
Fields§
§event: Option<String>The event: field, when the event has one.
data: StringThe data: lines of the event, joined with \n.
id: Option<String>The last id: field seen on the stream, when there was one.
Trait Implementations§
impl Eq for Event
impl StructuralPartialEq for Event
Auto Trait Implementations§
impl Forget for Event
impl Freeze for Event
impl Move for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnsafeUnpin for Event
impl UnwindSafe for Event
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