pub struct IndexInstrumentBuildCheckedBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> IndexInstrumentBuildCheckedBuilder<S>
impl<S: State> IndexInstrumentBuildCheckedBuilder<S>
Sourcepub fn build(self) -> CorrectnessResult<IndexInstrument>where
S: IsComplete,
pub fn build(self) -> CorrectnessResult<IndexInstrument>where
S: IsComplete,
Finishes building and performs the requested action.
Sourcepub fn instrument_id(
self,
value: InstrumentId,
) -> IndexInstrumentBuildCheckedBuilder<SetInstrumentId<S>>where
S::InstrumentId: IsUnset,
pub fn instrument_id(
self,
value: InstrumentId,
) -> IndexInstrumentBuildCheckedBuilder<SetInstrumentId<S>>where
S::InstrumentId: IsUnset,
Required.
Sourcepub fn raw_symbol(
self,
value: Symbol,
) -> IndexInstrumentBuildCheckedBuilder<SetRawSymbol<S>>where
S::RawSymbol: IsUnset,
pub fn raw_symbol(
self,
value: Symbol,
) -> IndexInstrumentBuildCheckedBuilder<SetRawSymbol<S>>where
S::RawSymbol: IsUnset,
Required.
Sourcepub fn currency(
self,
value: Currency,
) -> IndexInstrumentBuildCheckedBuilder<SetCurrency<S>>where
S::Currency: IsUnset,
pub fn currency(
self,
value: Currency,
) -> IndexInstrumentBuildCheckedBuilder<SetCurrency<S>>where
S::Currency: IsUnset,
Required.
Sourcepub fn price_precision(
self,
value: u8,
) -> IndexInstrumentBuildCheckedBuilder<SetPricePrecision<S>>where
S::PricePrecision: IsUnset,
pub fn price_precision(
self,
value: u8,
) -> IndexInstrumentBuildCheckedBuilder<SetPricePrecision<S>>where
S::PricePrecision: IsUnset,
Required.
Sourcepub fn size_precision(
self,
value: u8,
) -> IndexInstrumentBuildCheckedBuilder<SetSizePrecision<S>>where
S::SizePrecision: IsUnset,
pub fn size_precision(
self,
value: u8,
) -> IndexInstrumentBuildCheckedBuilder<SetSizePrecision<S>>where
S::SizePrecision: IsUnset,
Required.
Sourcepub fn price_increment(
self,
value: Price,
) -> IndexInstrumentBuildCheckedBuilder<SetPriceIncrement<S>>where
S::PriceIncrement: IsUnset,
pub fn price_increment(
self,
value: Price,
) -> IndexInstrumentBuildCheckedBuilder<SetPriceIncrement<S>>where
S::PriceIncrement: IsUnset,
Required.
Sourcepub fn size_increment(
self,
value: Quantity,
) -> IndexInstrumentBuildCheckedBuilder<SetSizeIncrement<S>>where
S::SizeIncrement: IsUnset,
pub fn size_increment(
self,
value: Quantity,
) -> IndexInstrumentBuildCheckedBuilder<SetSizeIncrement<S>>where
S::SizeIncrement: IsUnset,
Required.
Sourcepub fn tick_scheme(
self,
value: Ustr,
) -> IndexInstrumentBuildCheckedBuilder<SetTickScheme<S>>where
S::TickScheme: IsUnset,
pub fn tick_scheme(
self,
value: Ustr,
) -> IndexInstrumentBuildCheckedBuilder<SetTickScheme<S>>where
S::TickScheme: IsUnset,
Sourcepub fn maybe_tick_scheme(
self,
value: Option<Ustr>,
) -> IndexInstrumentBuildCheckedBuilder<SetTickScheme<S>>where
S::TickScheme: IsUnset,
pub fn maybe_tick_scheme(
self,
value: Option<Ustr>,
) -> IndexInstrumentBuildCheckedBuilder<SetTickScheme<S>>where
S::TickScheme: IsUnset,
Sourcepub fn info(
self,
value: Params,
) -> IndexInstrumentBuildCheckedBuilder<SetInfo<S>>where
S::Info: IsUnset,
pub fn info(
self,
value: Params,
) -> IndexInstrumentBuildCheckedBuilder<SetInfo<S>>where
S::Info: IsUnset,
Sourcepub fn maybe_info(
self,
value: Option<Params>,
) -> IndexInstrumentBuildCheckedBuilder<SetInfo<S>>where
S::Info: IsUnset,
pub fn maybe_info(
self,
value: Option<Params>,
) -> IndexInstrumentBuildCheckedBuilder<SetInfo<S>>where
S::Info: IsUnset,
Sourcepub fn ts_event(
self,
value: UnixNanos,
) -> IndexInstrumentBuildCheckedBuilder<SetTsEvent<S>>where
S::TsEvent: IsUnset,
pub fn ts_event(
self,
value: UnixNanos,
) -> IndexInstrumentBuildCheckedBuilder<SetTsEvent<S>>where
S::TsEvent: IsUnset,
Required.
Sourcepub fn ts_init(
self,
value: UnixNanos,
) -> IndexInstrumentBuildCheckedBuilder<SetTsInit<S>>where
S::TsInit: IsUnset,
pub fn ts_init(
self,
value: UnixNanos,
) -> IndexInstrumentBuildCheckedBuilder<SetTsInit<S>>where
S::TsInit: IsUnset,
Required.
Auto Trait Implementations§
impl<S> Freeze for IndexInstrumentBuildCheckedBuilder<S>
impl<S> RefUnwindSafe for IndexInstrumentBuildCheckedBuilder<S>
impl<S> Send for IndexInstrumentBuildCheckedBuilder<S>
impl<S> Sync for IndexInstrumentBuildCheckedBuilder<S>
impl<S> Unpin for IndexInstrumentBuildCheckedBuilder<S>
impl<S> UnsafeUnpin for IndexInstrumentBuildCheckedBuilder<S>
impl<S> UnwindSafe for IndexInstrumentBuildCheckedBuilder<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