pub struct MarketDataFields(/* private fields */);Expand description
Market-data field codes used when subscribing. See
bezant_api::GetMdSnapshotRequestQuery for the documented set on the
REST side — every code listed there works on the WebSocket too.
Kept as an opaque newtype so we can change the internal representation in a point release without breaking downstream callers.
Implementations§
Source§impl MarketDataFields
impl MarketDataFields
Sourcepub fn default_l1() -> Self
pub fn default_l1() -> Self
Reasonable default: last price, bid, ask, last size, bid size, ask size.
Sourcepub fn from_codes<I, S>(codes: I) -> Self
pub fn from_codes<I, S>(codes: I) -> Self
Build a new MarketDataFields from any iterator of code strings.
Trait Implementations§
Source§impl Clone for MarketDataFields
impl Clone for MarketDataFields
Source§fn clone(&self) -> MarketDataFields
fn clone(&self) -> MarketDataFields
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MarketDataFields
impl Debug for MarketDataFields
Source§impl<S> FromIterator<S> for MarketDataFields
impl<S> FromIterator<S> for MarketDataFields
Source§fn from_iter<I: IntoIterator<Item = S>>(iter: I) -> Self
fn from_iter<I: IntoIterator<Item = S>>(iter: I) -> Self
Creates a value from an iterator. Read more
Auto Trait Implementations§
impl Freeze for MarketDataFields
impl RefUnwindSafe for MarketDataFields
impl Send for MarketDataFields
impl Sync for MarketDataFields
impl Unpin for MarketDataFields
impl UnsafeUnpin for MarketDataFields
impl UnwindSafe for MarketDataFields
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