pub struct SyntheticInstrumentBuildCheckedBuilder<'f1, S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<'f1, S: State> SyntheticInstrumentBuildCheckedBuilder<'f1, S>
impl<'f1, S: State> SyntheticInstrumentBuildCheckedBuilder<'f1, S>
Sourcepub fn build(self) -> Result<SyntheticInstrument, SyntheticInstrumentError>where
S: IsComplete,
pub fn build(self) -> Result<SyntheticInstrument, SyntheticInstrumentError>where
S: IsComplete,
Finishes building and performs the requested action.
Sourcepub fn symbol(
self,
value: Symbol,
) -> SyntheticInstrumentBuildCheckedBuilder<'f1, SetSymbol<S>>where
S::Symbol: IsUnset,
pub fn symbol(
self,
value: Symbol,
) -> SyntheticInstrumentBuildCheckedBuilder<'f1, SetSymbol<S>>where
S::Symbol: IsUnset,
Required.
Sourcepub fn price_precision(
self,
value: u8,
) -> SyntheticInstrumentBuildCheckedBuilder<'f1, SetPricePrecision<S>>where
S::PricePrecision: IsUnset,
pub fn price_precision(
self,
value: u8,
) -> SyntheticInstrumentBuildCheckedBuilder<'f1, SetPricePrecision<S>>where
S::PricePrecision: IsUnset,
Required.
Sourcepub fn components(
self,
value: Vec<InstrumentId>,
) -> SyntheticInstrumentBuildCheckedBuilder<'f1, SetComponents<S>>where
S::Components: IsUnset,
pub fn components(
self,
value: Vec<InstrumentId>,
) -> SyntheticInstrumentBuildCheckedBuilder<'f1, SetComponents<S>>where
S::Components: IsUnset,
Required.
Sourcepub fn formula(
self,
value: &'f1 str,
) -> SyntheticInstrumentBuildCheckedBuilder<'f1, SetFormula<S>>where
S::Formula: IsUnset,
pub fn formula(
self,
value: &'f1 str,
) -> SyntheticInstrumentBuildCheckedBuilder<'f1, SetFormula<S>>where
S::Formula: IsUnset,
Required.
Sourcepub fn ts_event(
self,
value: UnixNanos,
) -> SyntheticInstrumentBuildCheckedBuilder<'f1, SetTsEvent<S>>where
S::TsEvent: IsUnset,
pub fn ts_event(
self,
value: UnixNanos,
) -> SyntheticInstrumentBuildCheckedBuilder<'f1, SetTsEvent<S>>where
S::TsEvent: IsUnset,
Required.
Sourcepub fn ts_init(
self,
value: UnixNanos,
) -> SyntheticInstrumentBuildCheckedBuilder<'f1, SetTsInit<S>>where
S::TsInit: IsUnset,
pub fn ts_init(
self,
value: UnixNanos,
) -> SyntheticInstrumentBuildCheckedBuilder<'f1, SetTsInit<S>>where
S::TsInit: IsUnset,
Required.
Auto Trait Implementations§
impl<'f1, S> Freeze for SyntheticInstrumentBuildCheckedBuilder<'f1, S>
impl<'f1, S> RefUnwindSafe for SyntheticInstrumentBuildCheckedBuilder<'f1, S>
impl<'f1, S> Send for SyntheticInstrumentBuildCheckedBuilder<'f1, S>
impl<'f1, S> Sync for SyntheticInstrumentBuildCheckedBuilder<'f1, S>
impl<'f1, S> Unpin for SyntheticInstrumentBuildCheckedBuilder<'f1, S>
impl<'f1, S> UnsafeUnpin for SyntheticInstrumentBuildCheckedBuilder<'f1, S>
impl<'f1, S> UnwindSafe for SyntheticInstrumentBuildCheckedBuilder<'f1, S>
Blanket Implementations§
impl<T> Allocation for T
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