pub enum Contract {
Futures(FuturesContract),
}Variants§
Futures(FuturesContract)
Implementations§
Source§impl Contract
impl Contract
pub fn from_raw_symbol(symbol: &str) -> Result<Self, FuturesContractParseError>
pub fn from_cme_symbol(symbol: &str) -> Result<Self, FuturesContractParseError>
pub fn from_activ_symbol( symbol: &str, ) -> Result<Self, FuturesContractParseError>
pub fn raw_symbol(&self) -> String
pub fn contract_month_yyyymm(&self) -> String
pub fn validate_against_date( &self, date: NaiveDate, ) -> Result<(), FuturesContractParseError>
Trait Implementations§
impl Copy for Contract
impl Eq for Contract
Source§impl Ord for Contract
impl Ord for Contract
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 PartialOrd for Contract
impl PartialOrd for Contract
impl StructuralPartialEq for Contract
Auto Trait Implementations§
impl Freeze for Contract
impl RefUnwindSafe for Contract
impl Send for Contract
impl Sync for Contract
impl Unpin for Contract
impl UnsafeUnpin for Contract
impl UnwindSafe for Contract
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