Struct sse_client::Event[][src]

pub struct Event {
    pub id: String,
    pub type_: String,
    pub data: String,
}

Event data sent by server

Fields

Represents message id field. Default "".

Represents message event field. Default "message".

Represents message data field. Default "".

Methods

impl Event
[src]

Trait Implementations

impl Debug for Event
[src]

Formats the value using the given formatter. Read more

impl PartialEq for Event
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Clone for Event
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for Event

impl Sync for Event