Struct eventsource_stream::Event [−][src]
pub struct Event {
pub event: Option<String>,
pub data: Vec<u8>,
pub id: Option<Vec<u8>>,
pub retry: Option<Duration>,
}Expand description
An Event
Fields
event: Option<String>The event name if given
data: Vec<u8>The event data
id: Option<Vec<u8>>The event id if given
retry: Option<Duration>Retry duration if given