pub struct InstrumentStatusBuilder { /* private fields */ }
Expand description
Builder for InstrumentStatus
.
Implementations§
Source§impl InstrumentStatusBuilder
impl InstrumentStatusBuilder
Sourcepub fn instrument_id(&mut self, value: InstrumentId) -> &mut Self
pub fn instrument_id(&mut self, value: InstrumentId) -> &mut Self
The instrument ID for the status change.
Sourcepub fn action(&mut self, value: MarketStatusAction) -> &mut Self
pub fn action(&mut self, value: MarketStatusAction) -> &mut Self
The instrument market status action.
Sourcepub fn ts_event(&mut self, value: UnixNanos) -> &mut Self
pub fn ts_event(&mut self, value: UnixNanos) -> &mut Self
UNIX timestamp (nanoseconds) when the status event occurred.
Sourcepub fn ts_init(&mut self, value: UnixNanos) -> &mut Self
pub fn ts_init(&mut self, value: UnixNanos) -> &mut Self
UNIX timestamp (nanoseconds) when the struct was initialized.
Sourcepub fn reason(&mut self, value: Option<Ustr>) -> &mut Self
pub fn reason(&mut self, value: Option<Ustr>) -> &mut Self
Additional details about the cause of the status change.
Sourcepub fn trading_event(&mut self, value: Option<Ustr>) -> &mut Self
pub fn trading_event(&mut self, value: Option<Ustr>) -> &mut Self
Further information about the status change (if provided).
Sourcepub fn is_trading(&mut self, value: Option<bool>) -> &mut Self
pub fn is_trading(&mut self, value: Option<bool>) -> &mut Self
The state of trading in the instrument.
Sourcepub fn is_quoting(&mut self, value: Option<bool>) -> &mut Self
pub fn is_quoting(&mut self, value: Option<bool>) -> &mut Self
The state of quoting in the instrument.
Sourcepub fn is_short_sell_restricted(&mut self, value: Option<bool>) -> &mut Self
pub fn is_short_sell_restricted(&mut self, value: Option<bool>) -> &mut Self
The state of short sell restrictions for the instrument (if applicable).
Sourcepub fn build(&self) -> Result<InstrumentStatus, InstrumentStatusBuilderError>
pub fn build(&self) -> Result<InstrumentStatus, InstrumentStatusBuilderError>
Trait Implementations§
Source§impl Clone for InstrumentStatusBuilder
impl Clone for InstrumentStatusBuilder
Source§fn clone(&self) -> InstrumentStatusBuilder
fn clone(&self) -> InstrumentStatusBuilder
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for InstrumentStatusBuilder
impl RefUnwindSafe for InstrumentStatusBuilder
impl Send for InstrumentStatusBuilder
impl Sync for InstrumentStatusBuilder
impl Unpin for InstrumentStatusBuilder
impl UnwindSafe for InstrumentStatusBuilder
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