Struct barter::data::market::MarketEvent [−][src]
pub struct MarketEvent {
pub event_type: &'static str,
pub trace_id: Uuid,
pub timestamp: DateTime<Utc>,
pub exchange: String,
pub symbol: String,
pub data: MarketData,
}
Expand description
Market data & related metadata produced by a data::handler implementation for the Strategy & Portfolio to interpret.
Fields
event_type: &'static str
trace_id: Uuid
timestamp: DateTime<Utc>
exchange: String
symbol: String
data: MarketData
Implementations
Returns a MarketEventBuilder instance.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'static>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'static>,
Deserialize this value from the given Serde deserializer. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more