Struct SseEvent

View as Markdown

Generated from cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-ffi.

pub struct SseEvent {
    pub event: Option<String>,
    pub data: Json,
}

One decoded SSE frame, paired with the parsed data: payload.

Fields

event: Option<String>

Value of the event: line if present.

data: Json

Parsed JSON payload from the data: line(s).

Trait Implementations

impl Clone for SseEvent

impl Clone for SseEvent

clone

fn clone(&self) -> SseEvent

clone_from

fn clone_from(&mut self, source: &Self)

impl Debug for SseEvent

impl Debug for SseEvent

fmt

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl PartialEq for SseEvent

impl PartialEq for SseEvent

eq

fn eq(&self, other: &SseEvent) -> bool

ne

fn ne(&self, other: &Rhs) -> bool

impl Eq for SseEvent

impl Eq for SseEvent

impl StructuralPartialEq for SseEvent

impl StructuralPartialEq for SseEvent