#[non_exhaustive]pub enum ContractMaturity {
Perpetual,
Expiring,
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
Source§impl Clone for ContractMaturity
impl Clone for ContractMaturity
Source§fn clone(&self) -> ContractMaturity
fn clone(&self) -> ContractMaturity
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 ContractMaturity
impl Debug for ContractMaturity
Source§impl Display for ContractMaturity
impl Display for ContractMaturity
Source§impl FromStr for ContractMaturity
impl FromStr for ContractMaturity
Source§impl Hash for ContractMaturity
impl Hash for ContractMaturity
Source§impl Ord for ContractMaturity
impl Ord for ContractMaturity
Source§fn cmp(&self, other: &ContractMaturity) -> Ordering
fn cmp(&self, other: &ContractMaturity) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ContractMaturity
impl PartialEq for ContractMaturity
Source§fn eq(&self, other: &ContractMaturity) -> bool
fn eq(&self, other: &ContractMaturity) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ContractMaturity
impl PartialOrd for ContractMaturity
impl Copy for ContractMaturity
impl Eq for ContractMaturity
impl StructuralPartialEq for ContractMaturity
Auto Trait Implementations§
impl Freeze for ContractMaturity
impl RefUnwindSafe for ContractMaturity
impl Send for ContractMaturity
impl Sync for ContractMaturity
impl Unpin for ContractMaturity
impl UnsafeUnpin for ContractMaturity
impl UnwindSafe for ContractMaturity
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