pub struct InstrumentSearch {
pub exchange: Option<Exchange>,
pub instrument_type: Option<InstrumentType>,
pub query: String,
pub limit: Option<u32>,
}
Expand description
Instrument search parameters
Fields§
§exchange: Option<Exchange>
Exchange to search in (optional)
instrument_type: Option<InstrumentType>
Instrument type filter (optional)
query: String
Search query string
limit: Option<u32>
Maximum number of results
Implementations§
Source§impl InstrumentSearch
impl InstrumentSearch
Sourcepub fn instrument_type(self, instrument_type: InstrumentType) -> Self
pub fn instrument_type(self, instrument_type: InstrumentType) -> Self
Set the instrument type filter
Sourcepub fn equity_only(self) -> Self
pub fn equity_only(self) -> Self
Search for equity instruments only
Sourcepub fn options_only(self) -> Self
pub fn options_only(self) -> Self
Search for options only
Sourcepub fn futures_only(self) -> Self
pub fn futures_only(self) -> Self
Search for futures only
Trait Implementations§
Source§impl Clone for InstrumentSearch
impl Clone for InstrumentSearch
Source§fn clone(&self) -> InstrumentSearch
fn clone(&self) -> InstrumentSearch
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 InstrumentSearch
impl Debug for InstrumentSearch
Source§impl<'de> Deserialize<'de> for InstrumentSearch
impl<'de> Deserialize<'de> for InstrumentSearch
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 InstrumentSearch
impl RefUnwindSafe for InstrumentSearch
impl Send for InstrumentSearch
impl Sync for InstrumentSearch
impl Unpin for InstrumentSearch
impl UnwindSafe for InstrumentSearch
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