pub struct InstrumentLookup {
pub tokens: Vec<u32>,
pub exchange: Option<Exchange>,
}
Expand description
Instrument lookup by token
Fields§
§tokens: Vec<u32>
List of instrument tokens to lookup
exchange: Option<Exchange>
Exchange (optional, for validation)
Implementations§
Source§impl InstrumentLookup
impl InstrumentLookup
Sourcepub fn add_tokens(self, tokens: Vec<u32>) -> Self
pub fn add_tokens(self, tokens: Vec<u32>) -> Self
Add multiple tokens to lookup
Trait Implementations§
Source§impl Clone for InstrumentLookup
impl Clone for InstrumentLookup
Source§fn clone(&self) -> InstrumentLookup
fn clone(&self) -> InstrumentLookup
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for InstrumentLookup
impl Debug for InstrumentLookup
Source§impl<'de> Deserialize<'de> for InstrumentLookup
impl<'de> Deserialize<'de> for InstrumentLookup
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
Auto Trait Implementations§
impl Freeze for InstrumentLookup
impl RefUnwindSafe for InstrumentLookup
impl Send for InstrumentLookup
impl Sync for InstrumentLookup
impl Unpin for InstrumentLookup
impl UnwindSafe for InstrumentLookup
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