pub struct StockListingRequest { /* private fields */ }Expand description
A stock directory snapshot; independent of free-text search.
Implementations§
Source§impl StockListingRequest
impl StockListingRequest
Sourcepub fn new(as_of: &str, active: bool) -> Result<Self>
pub fn new(as_of: &str, active: bool) -> Result<Self>
Request active or inactive stocks on an inclusive calendar date.
Sourcepub fn with_stock_type(self, code: impl Into<String>) -> Self
pub fn with_stock_type(self, code: impl Into<String>) -> Self
Filter by a provider stock-type code, such as CS or ADRC.
Sourcepub fn with_locale(self, locale: impl Into<String>) -> Self
pub fn with_locale(self, locale: impl Into<String>) -> Self
Select a market locale. Defaults to us.
Sourcepub fn stock_type(&self) -> Option<&str>
pub fn stock_type(&self) -> Option<&str>
Stock-type filter, if any.
Sourcepub fn with_page_size(self, limit: u32) -> Result<Self>
pub fn with_page_size(self, limit: u32) -> Result<Self>
Limit a page to 1–1000 directory entries.
Trait Implementations§
Source§impl Clone for StockListingRequest
impl Clone for StockListingRequest
Source§impl Debug for StockListingRequest
impl Debug for StockListingRequest
Auto Trait Implementations§
impl Freeze for StockListingRequest
impl RefUnwindSafe for StockListingRequest
impl Send for StockListingRequest
impl Sync for StockListingRequest
impl Unpin for StockListingRequest
impl UnsafeUnpin for StockListingRequest
impl UnwindSafe for StockListingRequest
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,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more