pub struct FullDepthParamsBuilder { /* private fields */ }Expand description
Builder for FullDepthParams.
Implementations§
Source§impl FullDepthParamsBuilder
impl FullDepthParamsBuilder
Sourcepub fn symbol<VALUE: Into<String>>(self, value: VALUE) -> Self
pub fn symbol<VALUE: Into<String>>(self, value: VALUE) -> Self
Trading pair symbol, e.g. ALPHA_175USDT (use token ID from Token List).
This field is **required.
Sourcepub fn limit<VALUE: Into<Option<FullDepthLimitEnum>>>(
self,
value: VALUE,
) -> Self
pub fn limit<VALUE: Into<Option<FullDepthLimitEnum>>>( self, value: VALUE, ) -> Self
Number of price levels to return. Valid values: 5, 10, 20, 50, 100, 500, 1000.
This field is **optional.
Sourcepub fn build(self) -> Result<FullDepthParams, ParamBuildError>
pub fn build(self) -> Result<FullDepthParams, ParamBuildError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FullDepthParamsBuilder
impl RefUnwindSafe for FullDepthParamsBuilder
impl Send for FullDepthParamsBuilder
impl Sync for FullDepthParamsBuilder
impl Unpin for FullDepthParamsBuilder
impl UnsafeUnpin for FullDepthParamsBuilder
impl UnwindSafe for FullDepthParamsBuilder
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