pub struct MultiQuotesParams {
pub symbols: Option<String>,
pub start: Option<String>,
pub end: Option<String>,
pub limit: Option<u32>,
pub feed: Option<DataFeed>,
pub page_token: Option<String>,
}Expand description
Parameters for multi-symbol quotes request.
Fields§
§symbols: Option<String>Comma-separated list of symbols.
start: Option<String>Start time (RFC3339).
end: Option<String>End time (RFC3339).
limit: Option<u32>Maximum number of quotes per symbol.
feed: Option<DataFeed>Data feed source.
page_token: Option<String>Pagination token.
Implementations§
Source§impl MultiQuotesParams
impl MultiQuotesParams
Sourcepub fn new(symbols: &str) -> MultiQuotesParams
pub fn new(symbols: &str) -> MultiQuotesParams
Create new parameters with symbols.
Sourcepub fn time_range(self, start: &str, end: &str) -> MultiQuotesParams
pub fn time_range(self, start: &str, end: &str) -> MultiQuotesParams
Set time range.
Sourcepub fn feed(self, feed: DataFeed) -> MultiQuotesParams
pub fn feed(self, feed: DataFeed) -> MultiQuotesParams
Set data feed.
Sourcepub fn limit(self, limit: u32) -> MultiQuotesParams
pub fn limit(self, limit: u32) -> MultiQuotesParams
Set limit.
Trait Implementations§
Source§impl Clone for MultiQuotesParams
impl Clone for MultiQuotesParams
Source§fn clone(&self) -> MultiQuotesParams
fn clone(&self) -> MultiQuotesParams
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 MultiQuotesParams
impl Debug for MultiQuotesParams
Source§impl Default for MultiQuotesParams
impl Default for MultiQuotesParams
Source§fn default() -> MultiQuotesParams
fn default() -> MultiQuotesParams
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MultiQuotesParams
impl<'de> Deserialize<'de> for MultiQuotesParams
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<MultiQuotesParams, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<MultiQuotesParams, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for MultiQuotesParams
impl Serialize for MultiQuotesParams
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for MultiQuotesParams
impl RefUnwindSafe for MultiQuotesParams
impl Send for MultiQuotesParams
impl Sync for MultiQuotesParams
impl Unpin for MultiQuotesParams
impl UnwindSafe for MultiQuotesParams
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