#[non_exhaustive]pub struct DepthQuote {
pub id: DepthQuoteId,
pub side: QuoteSide,
pub price: Price,
pub size: Volume,
}Expand description
One entry of the market depth: a volume on offer at a price.
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.id: DepthQuoteIdIdentifier of the entry, unique within the depth of its symbol.
side: QuoteSideSide of the book the entry belongs to.
price: PricePrice of the entry.
size: VolumeVolume on offer at the price.
Trait Implementations§
Source§impl Clone for DepthQuote
impl Clone for DepthQuote
impl Copy for DepthQuote
Source§impl Debug for DepthQuote
impl Debug for DepthQuote
impl Eq for DepthQuote
Source§impl Hash for DepthQuote
impl Hash for DepthQuote
Source§impl PartialEq for DepthQuote
impl PartialEq for DepthQuote
impl StructuralPartialEq for DepthQuote
Source§impl TryFrom<ProtoOaDepthQuote> for DepthQuote
impl TryFrom<ProtoOaDepthQuote> for DepthQuote
Source§type Error = ValueError
type Error = ValueError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Forget for DepthQuote
impl Freeze for DepthQuote
impl Move for DepthQuote
impl RefUnwindSafe for DepthQuote
impl Send for DepthQuote
impl Sync for DepthQuote
impl Unpin for DepthQuote
impl UnsafeUnpin for DepthQuote
impl UnwindSafe for DepthQuote
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