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