pub struct FuturesContractBuildCheckedBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> FuturesContractBuildCheckedBuilder<S>
impl<S: State> FuturesContractBuildCheckedBuilder<S>
Sourcepub fn build(self) -> CorrectnessResult<FuturesContract>where
S: IsComplete,
pub fn build(self) -> CorrectnessResult<FuturesContract>where
S: IsComplete,
Finishes building and performs the requested action.
Sourcepub fn instrument_id(
self,
value: InstrumentId,
) -> FuturesContractBuildCheckedBuilder<SetInstrumentId<S>>where
S::InstrumentId: IsUnset,
pub fn instrument_id(
self,
value: InstrumentId,
) -> FuturesContractBuildCheckedBuilder<SetInstrumentId<S>>where
S::InstrumentId: IsUnset,
Required.
Sourcepub fn raw_symbol(
self,
value: Symbol,
) -> FuturesContractBuildCheckedBuilder<SetRawSymbol<S>>where
S::RawSymbol: IsUnset,
pub fn raw_symbol(
self,
value: Symbol,
) -> FuturesContractBuildCheckedBuilder<SetRawSymbol<S>>where
S::RawSymbol: IsUnset,
Required.
Sourcepub fn asset_class(
self,
value: AssetClass,
) -> FuturesContractBuildCheckedBuilder<SetAssetClass<S>>where
S::AssetClass: IsUnset,
pub fn asset_class(
self,
value: AssetClass,
) -> FuturesContractBuildCheckedBuilder<SetAssetClass<S>>where
S::AssetClass: IsUnset,
Required.
Sourcepub fn exchange(
self,
value: Ustr,
) -> FuturesContractBuildCheckedBuilder<SetExchange<S>>where
S::Exchange: IsUnset,
pub fn exchange(
self,
value: Ustr,
) -> FuturesContractBuildCheckedBuilder<SetExchange<S>>where
S::Exchange: IsUnset,
Sourcepub fn maybe_exchange(
self,
value: Option<Ustr>,
) -> FuturesContractBuildCheckedBuilder<SetExchange<S>>where
S::Exchange: IsUnset,
pub fn maybe_exchange(
self,
value: Option<Ustr>,
) -> FuturesContractBuildCheckedBuilder<SetExchange<S>>where
S::Exchange: IsUnset,
Sourcepub fn underlying(
self,
value: Ustr,
) -> FuturesContractBuildCheckedBuilder<SetUnderlying<S>>where
S::Underlying: IsUnset,
pub fn underlying(
self,
value: Ustr,
) -> FuturesContractBuildCheckedBuilder<SetUnderlying<S>>where
S::Underlying: IsUnset,
Required.
Sourcepub fn activation_ns(
self,
value: UnixNanos,
) -> FuturesContractBuildCheckedBuilder<SetActivationNs<S>>where
S::ActivationNs: IsUnset,
pub fn activation_ns(
self,
value: UnixNanos,
) -> FuturesContractBuildCheckedBuilder<SetActivationNs<S>>where
S::ActivationNs: IsUnset,
Required.
Sourcepub fn expiration_ns(
self,
value: UnixNanos,
) -> FuturesContractBuildCheckedBuilder<SetExpirationNs<S>>where
S::ExpirationNs: IsUnset,
pub fn expiration_ns(
self,
value: UnixNanos,
) -> FuturesContractBuildCheckedBuilder<SetExpirationNs<S>>where
S::ExpirationNs: IsUnset,
Required.
Sourcepub fn currency(
self,
value: Currency,
) -> FuturesContractBuildCheckedBuilder<SetCurrency<S>>where
S::Currency: IsUnset,
pub fn currency(
self,
value: Currency,
) -> FuturesContractBuildCheckedBuilder<SetCurrency<S>>where
S::Currency: IsUnset,
Required.
Sourcepub fn price_precision(
self,
value: u8,
) -> FuturesContractBuildCheckedBuilder<SetPricePrecision<S>>where
S::PricePrecision: IsUnset,
pub fn price_precision(
self,
value: u8,
) -> FuturesContractBuildCheckedBuilder<SetPricePrecision<S>>where
S::PricePrecision: IsUnset,
Required.
Sourcepub fn price_increment(
self,
value: Price,
) -> FuturesContractBuildCheckedBuilder<SetPriceIncrement<S>>where
S::PriceIncrement: IsUnset,
pub fn price_increment(
self,
value: Price,
) -> FuturesContractBuildCheckedBuilder<SetPriceIncrement<S>>where
S::PriceIncrement: IsUnset,
Required.
Sourcepub fn multiplier(
self,
value: Quantity,
) -> FuturesContractBuildCheckedBuilder<SetMultiplier<S>>where
S::Multiplier: IsUnset,
pub fn multiplier(
self,
value: Quantity,
) -> FuturesContractBuildCheckedBuilder<SetMultiplier<S>>where
S::Multiplier: IsUnset,
Required.
Sourcepub fn lot_size(
self,
value: Quantity,
) -> FuturesContractBuildCheckedBuilder<SetLotSize<S>>where
S::LotSize: IsUnset,
pub fn lot_size(
self,
value: Quantity,
) -> FuturesContractBuildCheckedBuilder<SetLotSize<S>>where
S::LotSize: IsUnset,
Required.
Sourcepub fn max_quantity(
self,
value: Quantity,
) -> FuturesContractBuildCheckedBuilder<SetMaxQuantity<S>>where
S::MaxQuantity: IsUnset,
pub fn max_quantity(
self,
value: Quantity,
) -> FuturesContractBuildCheckedBuilder<SetMaxQuantity<S>>where
S::MaxQuantity: IsUnset,
Sourcepub fn maybe_max_quantity(
self,
value: Option<Quantity>,
) -> FuturesContractBuildCheckedBuilder<SetMaxQuantity<S>>where
S::MaxQuantity: IsUnset,
pub fn maybe_max_quantity(
self,
value: Option<Quantity>,
) -> FuturesContractBuildCheckedBuilder<SetMaxQuantity<S>>where
S::MaxQuantity: IsUnset,
Sourcepub fn min_quantity(
self,
value: Quantity,
) -> FuturesContractBuildCheckedBuilder<SetMinQuantity<S>>where
S::MinQuantity: IsUnset,
pub fn min_quantity(
self,
value: Quantity,
) -> FuturesContractBuildCheckedBuilder<SetMinQuantity<S>>where
S::MinQuantity: IsUnset,
Sourcepub fn maybe_min_quantity(
self,
value: Option<Quantity>,
) -> FuturesContractBuildCheckedBuilder<SetMinQuantity<S>>where
S::MinQuantity: IsUnset,
pub fn maybe_min_quantity(
self,
value: Option<Quantity>,
) -> FuturesContractBuildCheckedBuilder<SetMinQuantity<S>>where
S::MinQuantity: IsUnset,
Sourcepub fn max_price(
self,
value: Price,
) -> FuturesContractBuildCheckedBuilder<SetMaxPrice<S>>where
S::MaxPrice: IsUnset,
pub fn max_price(
self,
value: Price,
) -> FuturesContractBuildCheckedBuilder<SetMaxPrice<S>>where
S::MaxPrice: IsUnset,
Sourcepub fn maybe_max_price(
self,
value: Option<Price>,
) -> FuturesContractBuildCheckedBuilder<SetMaxPrice<S>>where
S::MaxPrice: IsUnset,
pub fn maybe_max_price(
self,
value: Option<Price>,
) -> FuturesContractBuildCheckedBuilder<SetMaxPrice<S>>where
S::MaxPrice: IsUnset,
Sourcepub fn min_price(
self,
value: Price,
) -> FuturesContractBuildCheckedBuilder<SetMinPrice<S>>where
S::MinPrice: IsUnset,
pub fn min_price(
self,
value: Price,
) -> FuturesContractBuildCheckedBuilder<SetMinPrice<S>>where
S::MinPrice: IsUnset,
Sourcepub fn maybe_min_price(
self,
value: Option<Price>,
) -> FuturesContractBuildCheckedBuilder<SetMinPrice<S>>where
S::MinPrice: IsUnset,
pub fn maybe_min_price(
self,
value: Option<Price>,
) -> FuturesContractBuildCheckedBuilder<SetMinPrice<S>>where
S::MinPrice: IsUnset,
Sourcepub fn margin_init(
self,
value: Decimal,
) -> FuturesContractBuildCheckedBuilder<SetMarginInit<S>>where
S::MarginInit: IsUnset,
pub fn margin_init(
self,
value: Decimal,
) -> FuturesContractBuildCheckedBuilder<SetMarginInit<S>>where
S::MarginInit: IsUnset,
Sourcepub fn maybe_margin_init(
self,
value: Option<Decimal>,
) -> FuturesContractBuildCheckedBuilder<SetMarginInit<S>>where
S::MarginInit: IsUnset,
pub fn maybe_margin_init(
self,
value: Option<Decimal>,
) -> FuturesContractBuildCheckedBuilder<SetMarginInit<S>>where
S::MarginInit: IsUnset,
Sourcepub fn margin_maint(
self,
value: Decimal,
) -> FuturesContractBuildCheckedBuilder<SetMarginMaint<S>>where
S::MarginMaint: IsUnset,
pub fn margin_maint(
self,
value: Decimal,
) -> FuturesContractBuildCheckedBuilder<SetMarginMaint<S>>where
S::MarginMaint: IsUnset,
Sourcepub fn maybe_margin_maint(
self,
value: Option<Decimal>,
) -> FuturesContractBuildCheckedBuilder<SetMarginMaint<S>>where
S::MarginMaint: IsUnset,
pub fn maybe_margin_maint(
self,
value: Option<Decimal>,
) -> FuturesContractBuildCheckedBuilder<SetMarginMaint<S>>where
S::MarginMaint: IsUnset,
Sourcepub fn maker_fee(
self,
value: Decimal,
) -> FuturesContractBuildCheckedBuilder<SetMakerFee<S>>where
S::MakerFee: IsUnset,
pub fn maker_fee(
self,
value: Decimal,
) -> FuturesContractBuildCheckedBuilder<SetMakerFee<S>>where
S::MakerFee: IsUnset,
Sourcepub fn maybe_maker_fee(
self,
value: Option<Decimal>,
) -> FuturesContractBuildCheckedBuilder<SetMakerFee<S>>where
S::MakerFee: IsUnset,
pub fn maybe_maker_fee(
self,
value: Option<Decimal>,
) -> FuturesContractBuildCheckedBuilder<SetMakerFee<S>>where
S::MakerFee: IsUnset,
Sourcepub fn taker_fee(
self,
value: Decimal,
) -> FuturesContractBuildCheckedBuilder<SetTakerFee<S>>where
S::TakerFee: IsUnset,
pub fn taker_fee(
self,
value: Decimal,
) -> FuturesContractBuildCheckedBuilder<SetTakerFee<S>>where
S::TakerFee: IsUnset,
Sourcepub fn maybe_taker_fee(
self,
value: Option<Decimal>,
) -> FuturesContractBuildCheckedBuilder<SetTakerFee<S>>where
S::TakerFee: IsUnset,
pub fn maybe_taker_fee(
self,
value: Option<Decimal>,
) -> FuturesContractBuildCheckedBuilder<SetTakerFee<S>>where
S::TakerFee: IsUnset,
Sourcepub fn tick_scheme(
self,
value: Ustr,
) -> FuturesContractBuildCheckedBuilder<SetTickScheme<S>>where
S::TickScheme: IsUnset,
pub fn tick_scheme(
self,
value: Ustr,
) -> FuturesContractBuildCheckedBuilder<SetTickScheme<S>>where
S::TickScheme: IsUnset,
Sourcepub fn maybe_tick_scheme(
self,
value: Option<Ustr>,
) -> FuturesContractBuildCheckedBuilder<SetTickScheme<S>>where
S::TickScheme: IsUnset,
pub fn maybe_tick_scheme(
self,
value: Option<Ustr>,
) -> FuturesContractBuildCheckedBuilder<SetTickScheme<S>>where
S::TickScheme: IsUnset,
Sourcepub fn info(
self,
value: Params,
) -> FuturesContractBuildCheckedBuilder<SetInfo<S>>where
S::Info: IsUnset,
pub fn info(
self,
value: Params,
) -> FuturesContractBuildCheckedBuilder<SetInfo<S>>where
S::Info: IsUnset,
Sourcepub fn maybe_info(
self,
value: Option<Params>,
) -> FuturesContractBuildCheckedBuilder<SetInfo<S>>where
S::Info: IsUnset,
pub fn maybe_info(
self,
value: Option<Params>,
) -> FuturesContractBuildCheckedBuilder<SetInfo<S>>where
S::Info: IsUnset,
Sourcepub fn ts_event(
self,
value: UnixNanos,
) -> FuturesContractBuildCheckedBuilder<SetTsEvent<S>>where
S::TsEvent: IsUnset,
pub fn ts_event(
self,
value: UnixNanos,
) -> FuturesContractBuildCheckedBuilder<SetTsEvent<S>>where
S::TsEvent: IsUnset,
Required.
Sourcepub fn ts_init(
self,
value: UnixNanos,
) -> FuturesContractBuildCheckedBuilder<SetTsInit<S>>where
S::TsInit: IsUnset,
pub fn ts_init(
self,
value: UnixNanos,
) -> FuturesContractBuildCheckedBuilder<SetTsInit<S>>where
S::TsInit: IsUnset,
Required.
Auto Trait Implementations§
impl<S> Freeze for FuturesContractBuildCheckedBuilder<S>
impl<S> RefUnwindSafe for FuturesContractBuildCheckedBuilder<S>
impl<S> Send for FuturesContractBuildCheckedBuilder<S>
impl<S> Sync for FuturesContractBuildCheckedBuilder<S>
impl<S> Unpin for FuturesContractBuildCheckedBuilder<S>
impl<S> UnsafeUnpin for FuturesContractBuildCheckedBuilder<S>
impl<S> UnwindSafe for FuturesContractBuildCheckedBuilder<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