pub enum PredictionCreateOrderRequestContracts {
String(String),
Number(f64),
}Expand description
Legacy whole-contract sell quantity (only when isBuy is false). Cannot express fractions; prefer contractsMicro or contractsDecimal. Provide only one of contracts, contractsMicro, or contractsDecimal.
Variants§
Trait Implementations§
Source§impl Clone for PredictionCreateOrderRequestContracts
impl Clone for PredictionCreateOrderRequestContracts
Source§fn clone(&self) -> PredictionCreateOrderRequestContracts
fn clone(&self) -> PredictionCreateOrderRequestContracts
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<'de> Deserialize<'de> for PredictionCreateOrderRequestContracts
impl<'de> Deserialize<'de> for PredictionCreateOrderRequestContracts
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PredictionCreateOrderRequestContracts
impl RefUnwindSafe for PredictionCreateOrderRequestContracts
impl Send for PredictionCreateOrderRequestContracts
impl Sync for PredictionCreateOrderRequestContracts
impl Unpin for PredictionCreateOrderRequestContracts
impl UnsafeUnpin for PredictionCreateOrderRequestContracts
impl UnwindSafe for PredictionCreateOrderRequestContracts
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