pub struct SymbolInitBuilder<'f1, 'f2, S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with call().
Implementations§
Source§impl<'f1, 'f2, S: State> SymbolInitBuilder<'f1, 'f2, S>
impl<'f1, 'f2, S: State> SymbolInitBuilder<'f1, 'f2, S>
Sourcepub fn call(self) -> Result<String>where
S: IsComplete,
pub fn call(self) -> Result<String>where
S: IsComplete,
Finishes building and performs the requested action.
Sourcepub fn instrument(
self,
value: &'f1 str,
) -> SymbolInitBuilder<'f1, 'f2, SetInstrument<S>>where
S::Instrument: IsUnset,
pub fn instrument(
self,
value: &'f1 str,
) -> SymbolInitBuilder<'f1, 'f2, SetInstrument<S>>where
S::Instrument: IsUnset,
Required.
Sourcepub fn adjustment(
self,
value: MarketAdjustment,
) -> SymbolInitBuilder<'f1, 'f2, SetAdjustment<S>>where
S::Adjustment: IsUnset,
pub fn adjustment(
self,
value: MarketAdjustment,
) -> SymbolInitBuilder<'f1, 'f2, SetAdjustment<S>>where
S::Adjustment: IsUnset,
Sourcepub fn maybe_adjustment(
self,
value: Option<MarketAdjustment>,
) -> SymbolInitBuilder<'f1, 'f2, SetAdjustment<S>>where
S::Adjustment: IsUnset,
pub fn maybe_adjustment(
self,
value: Option<MarketAdjustment>,
) -> SymbolInitBuilder<'f1, 'f2, SetAdjustment<S>>where
S::Adjustment: IsUnset,
Sourcepub fn currency(
self,
value: Currency,
) -> SymbolInitBuilder<'f1, 'f2, SetCurrency<S>>where
S::Currency: IsUnset,
pub fn currency(
self,
value: Currency,
) -> SymbolInitBuilder<'f1, 'f2, SetCurrency<S>>where
S::Currency: IsUnset,
Sourcepub fn maybe_currency(
self,
value: Option<Currency>,
) -> SymbolInitBuilder<'f1, 'f2, SetCurrency<S>>where
S::Currency: IsUnset,
pub fn maybe_currency(
self,
value: Option<Currency>,
) -> SymbolInitBuilder<'f1, 'f2, SetCurrency<S>>where
S::Currency: IsUnset,
Sourcepub fn session_type(
self,
value: SessionType,
) -> SymbolInitBuilder<'f1, 'f2, SetSessionType<S>>where
S::SessionType: IsUnset,
pub fn session_type(
self,
value: SessionType,
) -> SymbolInitBuilder<'f1, 'f2, SetSessionType<S>>where
S::SessionType: IsUnset,
Sourcepub fn maybe_session_type(
self,
value: Option<SessionType>,
) -> SymbolInitBuilder<'f1, 'f2, SetSessionType<S>>where
S::SessionType: IsUnset,
pub fn maybe_session_type(
self,
value: Option<SessionType>,
) -> SymbolInitBuilder<'f1, 'f2, SetSessionType<S>>where
S::SessionType: IsUnset,
Sourcepub fn replay(
self,
value: &'f2 str,
) -> SymbolInitBuilder<'f1, 'f2, SetReplay<S>>where
S::Replay: IsUnset,
pub fn replay(
self,
value: &'f2 str,
) -> SymbolInitBuilder<'f1, 'f2, SetReplay<S>>where
S::Replay: IsUnset,
Sourcepub fn maybe_replay(
self,
value: Option<&'f2 str>,
) -> SymbolInitBuilder<'f1, 'f2, SetReplay<S>>where
S::Replay: IsUnset,
pub fn maybe_replay(
self,
value: Option<&'f2 str>,
) -> SymbolInitBuilder<'f1, 'f2, SetReplay<S>>where
S::Replay: IsUnset,
Auto Trait Implementations§
impl<'f1, 'f2, S> Freeze for SymbolInitBuilder<'f1, 'f2, S>
impl<'f1, 'f2, S> RefUnwindSafe for SymbolInitBuilder<'f1, 'f2, S>
impl<'f1, 'f2, S> Send for SymbolInitBuilder<'f1, 'f2, S>
impl<'f1, 'f2, S> Sync for SymbolInitBuilder<'f1, 'f2, S>
impl<'f1, 'f2, S> Unpin for SymbolInitBuilder<'f1, 'f2, S>
impl<'f1, 'f2, S> UnsafeUnpin for SymbolInitBuilder<'f1, 'f2, S>
impl<'f1, 'f2, S> UnwindSafe for SymbolInitBuilder<'f1, 'f2, S>
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