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