#[non_exhaustive]pub struct DerivativeKind {
pub maturity: ContractMaturity,
pub settlement: SettlementMode,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.maturity: ContractMaturity§settlement: SettlementModeImplementations§
Source§impl DerivativeKind
impl DerivativeKind
pub const fn new(maturity: ContractMaturity, settlement: SettlementMode) -> Self
pub const fn perpetual(settlement: SettlementMode) -> Self
pub const fn expiring(settlement: SettlementMode) -> Self
Trait Implementations§
Source§impl Clone for DerivativeKind
impl Clone for DerivativeKind
Source§fn clone(&self) -> DerivativeKind
fn clone(&self) -> DerivativeKind
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 DerivativeKind
impl Debug for DerivativeKind
Source§impl Display for DerivativeKind
impl Display for DerivativeKind
Source§impl FromStr for DerivativeKind
impl FromStr for DerivativeKind
Source§impl Hash for DerivativeKind
impl Hash for DerivativeKind
Source§impl Ord for DerivativeKind
impl Ord for DerivativeKind
Source§fn cmp(&self, other: &DerivativeKind) -> Ordering
fn cmp(&self, other: &DerivativeKind) -> 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 DerivativeKind
impl PartialEq for DerivativeKind
Source§fn eq(&self, other: &DerivativeKind) -> bool
fn eq(&self, other: &DerivativeKind) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for DerivativeKind
impl PartialOrd for DerivativeKind
impl Copy for DerivativeKind
impl Eq for DerivativeKind
impl StructuralPartialEq for DerivativeKind
Auto Trait Implementations§
impl Freeze for DerivativeKind
impl RefUnwindSafe for DerivativeKind
impl Send for DerivativeKind
impl Sync for DerivativeKind
impl Unpin for DerivativeKind
impl UnsafeUnpin for DerivativeKind
impl UnwindSafe for DerivativeKind
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