#[non_exhaustive]pub struct Quote {
pub symbol: SymbolId,
pub bid: Option<Price>,
pub ask: Option<Price>,
pub timestamp: Option<Timestamp>,
}Expand description
Latest known prices of a symbol.
The server sends only the side that changed; the other side keeps its last known value.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.symbol: SymbolIdSymbol the prices belong to.
bid: Option<Price>Last known bid, absent until the server has sent one.
ask: Option<Price>Last known ask, absent until the server has sent one.
timestamp: Option<Timestamp>Moment of the change, when the server reports it.
Implementations§
Trait Implementations§
impl Copy for Quote
impl Eq for Quote
impl StructuralPartialEq for Quote
Auto Trait Implementations§
impl Forget for Quote
impl Freeze for Quote
impl Move for Quote
impl RefUnwindSafe for Quote
impl Send for Quote
impl Sync for Quote
impl Unpin for Quote
impl UnsafeUnpin for Quote
impl UnwindSafe for Quote
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