pub struct GetStocksParamsBuilder { /* private fields */ }Expand description
Builder for GetStocksParams
Implementations§
Source§impl GetStocksParamsBuilder
impl GetStocksParamsBuilder
Sourcepub fn symbol(self, symbol: impl Into<String>) -> Self
pub fn symbol(self, symbol: impl Into<String>) -> Self
The ticker symbol of an instrument for which data is requested
Sourcepub fn figi(self, figi: impl Into<String>) -> Self
pub fn figi(self, figi: impl Into<String>) -> Self
Filter by financial instrument global identifier (FIGI)
Sourcepub fn isin(self, isin: impl Into<String>) -> Self
pub fn isin(self, isin: impl Into<String>) -> Self
Filter by international securities identification number (ISIN)
Sourcepub fn cusip(self, cusip: impl Into<String>) -> Self
pub fn cusip(self, cusip: impl Into<String>) -> Self
The CUSIP of an instrument for which data is requested. CUSIP access is activating in the <a href="https://twelvedata.com/account/add-ons">Add-ons section
Sourcepub fn cik(self, cik: impl Into<String>) -> Self
pub fn cik(self, cik: impl Into<String>) -> Self
The CIK of an instrument for which data is requested
Sourcepub fn mic_code(self, mic_code: impl Into<String>) -> Self
pub fn mic_code(self, mic_code: impl Into<String>) -> Self
Filter by market identifier code (MIC) under ISO 10383 standard
Sourcepub fn country(self, country: impl Into<String>) -> Self
pub fn country(self, country: impl Into<String>) -> Self
Filter by country name or alpha code, e.g., United States or US
Sourcepub fn type(self, type: impl Into<String>) -> Self
pub fn type(self, type: impl Into<String>) -> Self
The asset class to which the instrument belongs
Sourcepub fn delimiter(self, delimiter: impl Into<String>) -> Self
pub fn delimiter(self, delimiter: impl Into<String>) -> Self
The separator used in the CSV response data
Sourcepub fn include_delisted(self, include_delisted: bool) -> Self
pub fn include_delisted(self, include_delisted: bool) -> Self
Include delisted identifiers
Sourcepub fn build(self) -> GetStocksParams
pub fn build(self) -> GetStocksParams
Build the parameter struct
Trait Implementations§
Source§impl Clone for GetStocksParamsBuilder
impl Clone for GetStocksParamsBuilder
Source§fn clone(&self) -> GetStocksParamsBuilder
fn clone(&self) -> GetStocksParamsBuilder
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 GetStocksParamsBuilder
impl Debug for GetStocksParamsBuilder
Source§impl Default for GetStocksParamsBuilder
impl Default for GetStocksParamsBuilder
Source§fn default() -> GetStocksParamsBuilder
fn default() -> GetStocksParamsBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for GetStocksParamsBuilder
impl RefUnwindSafe for GetStocksParamsBuilder
impl Send for GetStocksParamsBuilder
impl Sync for GetStocksParamsBuilder
impl Unpin for GetStocksParamsBuilder
impl UnwindSafe for GetStocksParamsBuilder
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