pub struct ReferencePriceCalculationParamsBuilder { /* private fields */ }Expand description
Builder for ReferencePriceCalculationParams.
Implementations§
Source§impl ReferencePriceCalculationParamsBuilder
impl ReferencePriceCalculationParamsBuilder
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 symbol_status<VALUE: Into<Option<ReferencePriceCalculationSymbolStatusEnum>>>(
self,
value: VALUE,
) -> Self
pub fn symbol_status<VALUE: Into<Option<ReferencePriceCalculationSymbolStatusEnum>>>( self, value: VALUE, ) -> Self
The symbol_status parameter.
This field is **optional.
Sourcepub fn build(self) -> Result<ReferencePriceCalculationParams, ParamBuildError>
pub fn build(self) -> Result<ReferencePriceCalculationParams, ParamBuildError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ReferencePriceCalculationParamsBuilder
impl RefUnwindSafe for ReferencePriceCalculationParamsBuilder
impl Send for ReferencePriceCalculationParamsBuilder
impl Sync for ReferencePriceCalculationParamsBuilder
impl Unpin for ReferencePriceCalculationParamsBuilder
impl UnsafeUnpin for ReferencePriceCalculationParamsBuilder
impl UnwindSafe for ReferencePriceCalculationParamsBuilder
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