pub struct PredictionCreateOrderRequest {
pub contracts: Option<PredictionCreateOrderRequestContracts>,
pub contracts_decimal: Option<PredictionCreateOrderRequestContractsDecimal>,
pub contracts_micro: Option<PredictionCreateOrderRequestContractsMicro>,
pub deposit_amount: Option<PredictionCreateOrderRequestDepositAmount>,
pub deposit_mint: Option<String>,
pub is_buy: bool,
pub is_yes: Option<bool>,
pub market_id: Option<String>,
pub owner_pubkey: Option<String>,
pub position_pubkey: Option<String>,
}Fields§
§contracts: Option<PredictionCreateOrderRequestContracts>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.
contracts_decimal: Option<PredictionCreateOrderRequestContractsDecimal>Exact sell quantity as a decimal (e.g. 5.777773). Provide only one of contracts, contractsMicro, or contractsDecimal.
contracts_micro: Option<PredictionCreateOrderRequestContractsMicro>Exact sell quantity in micro-contract units (1000000 = 1 contract). Provide only one of contracts, contractsMicro, or contractsDecimal.
deposit_amount: Option<PredictionCreateOrderRequestDepositAmount>Amount must conform to the token decimals used by the token mint in depositMint
deposit_mint: Option<String>Mint address for the deposit token
is_buy: bool§is_yes: Option<bool>§market_id: Option<String>Hashed or canonical market ID for buys Constraint: minLength=1
owner_pubkey: Option<String>Order owner public key
position_pubkey: Option<String>Required for sells Constraint: minLength=32
Implementations§
Trait Implementations§
Source§impl Clone for PredictionCreateOrderRequest
impl Clone for PredictionCreateOrderRequest
Source§fn clone(&self) -> PredictionCreateOrderRequest
fn clone(&self) -> PredictionCreateOrderRequest
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 PredictionCreateOrderRequest
impl Debug for PredictionCreateOrderRequest
Source§impl<'de> Deserialize<'de> for PredictionCreateOrderRequest
impl<'de> Deserialize<'de> for PredictionCreateOrderRequest
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 PredictionCreateOrderRequest
impl RefUnwindSafe for PredictionCreateOrderRequest
impl Send for PredictionCreateOrderRequest
impl Sync for PredictionCreateOrderRequest
impl Unpin for PredictionCreateOrderRequest
impl UnsafeUnpin for PredictionCreateOrderRequest
impl UnwindSafe for PredictionCreateOrderRequest
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