Struct RowView
pub struct RowView {
pub price: Price,
pub is_ask: bool,
pub size: Qty,
pub action: RowAction,
pub ts: Option<UnixNanos>,
}Expand description
Side-neutral view of a book row (unary and stream rows are different generated types).
Fields§
§price: PricePrice of the level.
is_ask: boolsell_size rows are asks, buy_size rows are bids.
size: QtySize of the level in pieces. A zero size on a RowAction::Set row removes the level.
action: RowActionWhat to do with the level.
ts: Option<UnixNanos>Time of the row at the broker, when it sends one.
Trait Implementations§
impl Copy for RowView
impl StructuralPartialEq for RowView
Auto Trait Implementations§
impl Freeze for RowView
impl RefUnwindSafe for RowView
impl Send for RowView
impl Sync for RowView
impl Unpin for RowView
impl UnsafeUnpin for RowView
impl UnwindSafe for RowView
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].