pub struct TickerParams {
pub rolling: Option<bool>,
pub window_size: Option<u32>,
pub extras: Map<String, Value>,
}Expand description
Strongly typed parameters accepted by ticker endpoints.
Fields§
§rolling: Option<bool>When true, instructs the exchange to use the rolling window ticker
endpoint instead of the default 24h ticker.
window_size: Option<u32>Specifies the size of the rolling window in minutes (Binance specific).
extras: Map<String, Value>Additional exchange-specific parameters.
Implementations§
Source§impl TickerParams
impl TickerParams
Sourcepub fn builder() -> TickerParamsBuilder
pub fn builder() -> TickerParamsBuilder
Creates a new TickerParamsBuilder.
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 · 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<TickerParams, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<TickerParams, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<TickerParamsBuilder> for TickerParams
impl From<TickerParamsBuilder> for TickerParams
Source§fn from(builder: TickerParamsBuilder) -> TickerParams
fn from(builder: TickerParamsBuilder) -> TickerParams
Converts to this type from the input type.
Source§impl IntoTickerParams for TickerParams
impl IntoTickerParams for TickerParams
Source§fn into_ticker_params(self) -> TickerParams
fn into_ticker_params(self) -> TickerParams
Consumes
self and produces TickerParams.Source§impl PartialEq for TickerParams
impl PartialEq for TickerParams
Source§impl Serialize for TickerParams
impl Serialize for TickerParams
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
impl StructuralPartialEq for TickerParams
Auto Trait Implementations§
impl Freeze for TickerParams
impl RefUnwindSafe for TickerParams
impl Send for TickerParams
impl Sync for TickerParams
impl Unpin 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