pub struct TickerParams {
pub symbol: Option<String>,
pub symbols: Option<Vec<String>>,
pub window_size: Option<TickerWindowSizeEnum>,
pub type: Option<TickerTypeEnum>,
pub symbol_status: Option<TickerSymbolStatusEnum>,
}Expand description
Request parameters for the [ticker] operation.
This struct holds all of the inputs you can pass when calling
ticker.
Fields§
§symbol: Option<String>Either symbol or symbols must be provided
This field is **optional.
symbols: Option<Vec<String>>Either symbol or symbols must be provided
Examples of accepted format for the symbols parameter: [“BTCUSDT”,“BNBUSDT”] or %5B%22BTCUSDT%22,%22BNBUSDT%22%5D
The maximum number of symbols allowed in a request is 100.
This field is **optional.
window_size: Option<TickerWindowSizeEnum>Units cannot be combined (e.g. 1d2h is not allowed).
This field is **optional.
type: Option<TickerTypeEnum>The r#type parameter.
This field is **optional.
symbol_status: Option<TickerSymbolStatusEnum>The symbol_status parameter.
This field is **optional.
Implementations§
Source§impl TickerParams
impl TickerParams
Sourcepub fn builder() -> TickerParamsBuilder
pub fn builder() -> TickerParamsBuilder
Create a builder for [ticker].
Trait Implementations§
Source§impl Clone for TickerParams
impl Clone for TickerParams
Source§fn clone(&self) -> TickerParams
fn clone(&self) -> TickerParams
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TickerParams
impl Debug for TickerParams
Source§impl Default for TickerParams
impl Default for TickerParams
Source§fn default() -> TickerParams
fn default() -> TickerParams
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TickerParams
impl<'de> Deserialize<'de> for TickerParams
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 TickerParams
impl RefUnwindSafe for TickerParams
impl Send for TickerParams
impl Sync for TickerParams
impl Unpin for TickerParams
impl UnsafeUnpin for TickerParams
impl UnwindSafe for TickerParams
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