pub struct TickerParamsBuilder { /* private fields */ }Expand description
Builder for TickerParams.
Implementations§
Source§impl TickerParamsBuilder
impl TickerParamsBuilder
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 symbol<VALUE: Into<Option<String>>>(self, value: VALUE) -> Self
pub fn symbol<VALUE: Into<Option<String>>>(self, value: VALUE) -> Self
Describe a single symbol
This field is **optional.
Sourcepub fn symbols<VALUE: Into<Option<Vec<String>>>>(self, value: VALUE) -> Self
pub fn symbols<VALUE: Into<Option<Vec<String>>>>(self, value: VALUE) -> Self
List of symbols to query
This field is **optional.
Sourcepub fn type<VALUE: Into<Option<TickerTypeEnum>>>(self, value: VALUE) -> Self
pub fn type<VALUE: Into<Option<TickerTypeEnum>>>(self, value: VALUE) -> Self
The r#type parameter.
This field is **optional.
Sourcepub fn window_size<VALUE: Into<Option<TickerWindowSizeEnum>>>(
self,
value: VALUE,
) -> Self
pub fn window_size<VALUE: Into<Option<TickerWindowSizeEnum>>>( self, value: VALUE, ) -> Self
The window_size parameter.
This field is **optional.
Sourcepub fn symbol_status<VALUE: Into<Option<TickerSymbolStatusEnum>>>(
self,
value: VALUE,
) -> Self
pub fn symbol_status<VALUE: Into<Option<TickerSymbolStatusEnum>>>( self, value: VALUE, ) -> Self
The symbol_status parameter.
This field is **optional.
Sourcepub fn build(self) -> Result<TickerParams, ParamBuildError>
pub fn build(self) -> Result<TickerParams, ParamBuildError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TickerParamsBuilder
impl RefUnwindSafe for TickerParamsBuilder
impl Send for TickerParamsBuilder
impl Sync for TickerParamsBuilder
impl Unpin for TickerParamsBuilder
impl UnsafeUnpin for TickerParamsBuilder
impl UnwindSafe for TickerParamsBuilder
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