pub struct PartialDepthStreamParamsBuilder { /* private fields */ }Expand description
Builder for PartialDepthStreamParams.
Implementations§
Source§impl PartialDepthStreamParamsBuilder
impl PartialDepthStreamParamsBuilder
Sourcepub fn symbol<VALUE: Into<String>>(self, value: VALUE) -> Self
pub fn symbol<VALUE: Into<String>>(self, value: VALUE) -> Self
Symbol to subscribe, in lowercase stream format.
This field is **required.
Sourcepub fn levels<VALUE: Into<PartialDepthStreamLevelsEnum>>(
self,
value: VALUE,
) -> Self
pub fn levels<VALUE: Into<PartialDepthStreamLevelsEnum>>( self, value: VALUE, ) -> Self
Depth levels.
This field is **required.
Sourcepub fn interval<VALUE: Into<PartialDepthStreamIntervalEnum>>(
self,
value: VALUE,
) -> Self
pub fn interval<VALUE: Into<PartialDepthStreamIntervalEnum>>( self, value: VALUE, ) -> Self
Update interval.
This field is **required.
Sourcepub fn id<VALUE: Into<Option<u32>>>(self, value: VALUE) -> Self
pub fn id<VALUE: Into<Option<u32>>>(self, value: VALUE) -> Self
Unique WebSocket request ID.
This field is **optional.
Sourcepub fn build(self) -> Result<PartialDepthStreamParams, ParamBuildError>
pub fn build(self) -> Result<PartialDepthStreamParams, ParamBuildError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PartialDepthStreamParamsBuilder
impl RefUnwindSafe for PartialDepthStreamParamsBuilder
impl Send for PartialDepthStreamParamsBuilder
impl Sync for PartialDepthStreamParamsBuilder
impl Unpin for PartialDepthStreamParamsBuilder
impl UnsafeUnpin for PartialDepthStreamParamsBuilder
impl UnwindSafe for PartialDepthStreamParamsBuilder
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