pub struct DiffBookDepthParamsBuilder { /* private fields */ }Expand description
Builder for DiffBookDepthParams.
Implementations§
Source§impl DiffBookDepthParamsBuilder
impl DiffBookDepthParamsBuilder
Sourcepub fn symbol<VALUE: Into<String>>(self, value: VALUE) -> Self
pub fn symbol<VALUE: Into<String>>(self, value: VALUE) -> Self
Symbol to query
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 update_speed<VALUE: Into<Option<String>>>(self, value: VALUE) -> Self
pub fn update_speed<VALUE: Into<Option<String>>>(self, value: VALUE) -> Self
1000ms or 100ms
This field is **optional.
Sourcepub fn build(self) -> Result<DiffBookDepthParams, ParamBuildError>
pub fn build(self) -> Result<DiffBookDepthParams, ParamBuildError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DiffBookDepthParamsBuilder
impl RefUnwindSafe for DiffBookDepthParamsBuilder
impl Send for DiffBookDepthParamsBuilder
impl Sync for DiffBookDepthParamsBuilder
impl Unpin for DiffBookDepthParamsBuilder
impl UnsafeUnpin for DiffBookDepthParamsBuilder
impl UnwindSafe for DiffBookDepthParamsBuilder
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