pub struct DepthParamsBuilder { /* private fields */ }Expand description
Builder for DepthParams.
Implementations§
Source§impl DepthParamsBuilder
impl DepthParamsBuilder
Sourcepub fn symbol<VALUE: Into<String>>(self, value: VALUE) -> Self
pub fn symbol<VALUE: Into<String>>(self, value: VALUE) -> Self
The symbol parameter.
This field is **required.
Sourcepub fn id<VALUE: Into<Option<String>>>(self, value: VALUE) -> Self
pub fn id<VALUE: Into<Option<String>>>(self, value: VALUE) -> Self
Unique WebSocket request ID.
This field is **optional.
Sourcepub fn limit<VALUE: Into<Option<i32>>>(self, value: VALUE) -> Self
pub fn limit<VALUE: Into<Option<i32>>>(self, value: VALUE) -> Self
Default: 100; Maximum: 5000
This field is **optional.
Sourcepub fn symbol_status<VALUE: Into<Option<DepthSymbolStatusEnum>>>(
self,
value: VALUE,
) -> Self
pub fn symbol_status<VALUE: Into<Option<DepthSymbolStatusEnum>>>( self, value: VALUE, ) -> Self
The symbol_status parameter.
This field is **optional.
Sourcepub fn build(self) -> Result<DepthParams, ParamBuildError>
pub fn build(self) -> Result<DepthParams, ParamBuildError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DepthParamsBuilder
impl RefUnwindSafe for DepthParamsBuilder
impl Send for DepthParamsBuilder
impl Sync for DepthParamsBuilder
impl Unpin for DepthParamsBuilder
impl UnsafeUnpin for DepthParamsBuilder
impl UnwindSafe for DepthParamsBuilder
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