Enum crypto_message::compact::QuantityChoice
source · [−]pub enum QuantityChoice {
Base,
Quote,
Contract,
}Expand description
Choose which field to use as the quantity.
Variants
Base
quantity_base
Quote
quantity_quote
Contract
quantity_contract
Trait Implementations
sourceimpl Clone for QuantityChoice
impl Clone for QuantityChoice
sourcefn clone(&self) -> QuantityChoice
fn clone(&self) -> QuantityChoice
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for QuantityChoice
impl Debug for QuantityChoice
sourceimpl Display for QuantityChoice
impl Display for QuantityChoice
sourceimpl FromStr for QuantityChoice
impl FromStr for QuantityChoice
type Err = ParseError
type Err = ParseError
The associated error which can be returned from parsing.
sourceimpl TryFrom<&str> for QuantityChoice
impl TryFrom<&str> for QuantityChoice
type Error = ParseError
type Error = ParseError
The type returned in the event of a conversion error.
impl Copy for QuantityChoice
Auto Trait Implementations
impl RefUnwindSafe for QuantityChoice
impl Send for QuantityChoice
impl Sync for QuantityChoice
impl Unpin for QuantityChoice
impl UnwindSafe for QuantityChoice
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more