pub enum OptionInstrumentIdError {
InvalidFutureCode {
value: String,
reason: String,
},
InvalidExpiration {
value: String,
reason: String,
},
InvalidStrike {
value: String,
reason: String,
},
InvalidRoot {
value: String,
reason: String,
},
}Expand description
A contract component cannot be represented by the selected scheme.
Variants§
InvalidFutureCode
The underlying futures code is invalid.
InvalidExpiration
The expiry is unsupported or ambiguous.
InvalidStrike
The strike cannot be represented exactly.
InvalidRoot
The option root is invalid or unsupported.
Trait Implementations§
Source§impl Clone for OptionInstrumentIdError
impl Clone for OptionInstrumentIdError
Source§impl Debug for OptionInstrumentIdError
impl Debug for OptionInstrumentIdError
Source§impl Display for OptionInstrumentIdError
impl Display for OptionInstrumentIdError
impl Eq for OptionInstrumentIdError
Source§impl Error for OptionInstrumentIdError
impl Error for OptionInstrumentIdError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for OptionInstrumentIdError
impl PartialEq for OptionInstrumentIdError
impl StructuralPartialEq for OptionInstrumentIdError
Auto Trait Implementations§
impl Freeze for OptionInstrumentIdError
impl RefUnwindSafe for OptionInstrumentIdError
impl Send for OptionInstrumentIdError
impl Sync for OptionInstrumentIdError
impl Unpin for OptionInstrumentIdError
impl UnsafeUnpin for OptionInstrumentIdError
impl UnwindSafe for OptionInstrumentIdError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more