pub enum ContractSpecError {
NonPositiveMultiplier,
NonFiniteMultiplier,
NonPositiveQuantityStep,
NonFiniteQuantityStep,
InvalidMinQuantity,
EmptyPriceCurrency,
EmptySettlementCurrency,
}Expand description
Errors when validating a ContractSpec.
Variants§
NonPositiveMultiplier
NonFiniteMultiplier
NonPositiveQuantityStep
NonFiniteQuantityStep
InvalidMinQuantity
EmptyPriceCurrency
EmptySettlementCurrency
Trait Implementations§
Source§impl Clone for ContractSpecError
impl Clone for ContractSpecError
Source§fn clone(&self) -> ContractSpecError
fn clone(&self) -> ContractSpecError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ContractSpecError
impl Debug for ContractSpecError
Source§impl Display for ContractSpecError
impl Display for ContractSpecError
impl Eq for ContractSpecError
Source§impl Error for ContractSpecError
impl Error for ContractSpecError
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 From<ContractSpecError> for ValuationError
impl From<ContractSpecError> for ValuationError
Source§fn from(e: ContractSpecError) -> Self
fn from(e: ContractSpecError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ContractSpecError
impl PartialEq for ContractSpecError
impl StructuralPartialEq for ContractSpecError
Auto Trait Implementations§
impl Freeze for ContractSpecError
impl RefUnwindSafe for ContractSpecError
impl Send for ContractSpecError
impl Sync for ContractSpecError
impl Unpin for ContractSpecError
impl UnsafeUnpin for ContractSpecError
impl UnwindSafe for ContractSpecError
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