pub struct Book {
pub key: String,
pub market_snapshot_time: Option<i64>,
pub bid_side_levels: Option<Vec<BookLevel>>,
pub ask_side_levels: Option<Vec<BookLevel>>,
pub extra: HashMap<String, Value>,
}Expand description
A NYSE_BOOK, NASDAQ_BOOK or OPTIONS_BOOK depth snapshot. Every
frame carries the whole book.
Fields§
§key: StringThe subscription key (field 0).
market_snapshot_time: Option<i64>Epoch milliseconds.
bid_side_levels: Option<Vec<BookLevel>>§ask_side_levels: Option<Vec<BookLevel>>§extra: HashMap<String, Value>Fields the table does not describe, by wire key.
Implementations§
Source§impl Book
impl Book
Sourcepub fn from_content(content: &DataContent) -> Result<Self, Error>
pub fn from_content(content: &DataContent) -> Result<Self, Error>
Decode a content item using BookFields::FIELDS.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Book
impl<'de> Deserialize<'de> for Book
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for Book
Available on crate feature schemars only.
impl JsonSchema for Book
Available on crate feature
schemars only.Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl StructuralPartialEq for Book
Auto Trait Implementations§
impl Freeze for Book
impl RefUnwindSafe for Book
impl Send for Book
impl Sync for Book
impl Unpin for Book
impl UnsafeUnpin for Book
impl UnwindSafe for Book
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