pub struct TickerStreamParams {
pub symbol: String,
pub id: Option<u32>,
}Expand description
Request parameters for the [ticker_stream] operation.
This struct holds all of the inputs you can pass when calling
ticker_stream.
Fields§
§symbol: StringSymbol to subscribe, in lowercase stream format.
This field is **required.
id: Option<u32>Unique WebSocket request ID.
This field is **optional.
Implementations§
Source§impl TickerStreamParams
impl TickerStreamParams
Sourcepub fn builder(symbol: String) -> TickerStreamParamsBuilder
pub fn builder(symbol: String) -> TickerStreamParamsBuilder
Create a builder for [ticker_stream].
Required parameters:
symbol— Symbol to subscribe, in lowercase stream format.
Trait Implementations§
Source§impl Clone for TickerStreamParams
impl Clone for TickerStreamParams
Source§fn clone(&self) -> TickerStreamParams
fn clone(&self) -> TickerStreamParams
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 TickerStreamParams
impl Debug for TickerStreamParams
Source§impl<'de> Deserialize<'de> for TickerStreamParams
impl<'de> Deserialize<'de> for TickerStreamParams
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 TickerStreamParams
impl RefUnwindSafe for TickerStreamParams
impl Send for TickerStreamParams
impl Sync for TickerStreamParams
impl Unpin for TickerStreamParams
impl UnsafeUnpin for TickerStreamParams
impl UnwindSafe for TickerStreamParams
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