pub struct PredictionCreateOrderRequestBuilder { /* private fields */ }Expand description
Dependency-free builder for [#struct_name].
Implementations§
Source§impl PredictionCreateOrderRequestBuilder
impl PredictionCreateOrderRequestBuilder
Sourcepub fn contracts(self, contracts: PredictionCreateOrderRequestContracts) -> Self
pub fn contracts(self, contracts: PredictionCreateOrderRequestContracts) -> Self
Set the optional contracts request field.
Sourcepub fn contracts_decimal(
self,
contracts_decimal: PredictionCreateOrderRequestContractsDecimal,
) -> Self
pub fn contracts_decimal( self, contracts_decimal: PredictionCreateOrderRequestContractsDecimal, ) -> Self
Set the optional contractsDecimal request field.
Sourcepub fn contracts_micro(
self,
contracts_micro: PredictionCreateOrderRequestContractsMicro,
) -> Self
pub fn contracts_micro( self, contracts_micro: PredictionCreateOrderRequestContractsMicro, ) -> Self
Set the optional contractsMicro request field.
Sourcepub fn deposit_amount(
self,
deposit_amount: PredictionCreateOrderRequestDepositAmount,
) -> Self
pub fn deposit_amount( self, deposit_amount: PredictionCreateOrderRequestDepositAmount, ) -> Self
Set the optional depositAmount request field.
Sourcepub fn deposit_mint(self, deposit_mint: String) -> Self
pub fn deposit_mint(self, deposit_mint: String) -> Self
Set the optional depositMint request field.
Sourcepub fn owner_pubkey(self, owner_pubkey: String) -> Self
pub fn owner_pubkey(self, owner_pubkey: String) -> Self
Set the optional ownerPubkey request field.
Sourcepub fn position_pubkey(self, position_pubkey: String) -> Self
pub fn position_pubkey(self, position_pubkey: String) -> Self
Set the optional positionPubkey request field.
Sourcepub fn build(self) -> PredictionCreateOrderRequest
pub fn build(self) -> PredictionCreateOrderRequest
Finish building the request model.
Trait Implementations§
Source§impl Clone for PredictionCreateOrderRequestBuilder
impl Clone for PredictionCreateOrderRequestBuilder
Source§fn clone(&self) -> PredictionCreateOrderRequestBuilder
fn clone(&self) -> PredictionCreateOrderRequestBuilder
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 moreAuto Trait Implementations§
impl Freeze for PredictionCreateOrderRequestBuilder
impl RefUnwindSafe for PredictionCreateOrderRequestBuilder
impl Send for PredictionCreateOrderRequestBuilder
impl Sync for PredictionCreateOrderRequestBuilder
impl Unpin for PredictionCreateOrderRequestBuilder
impl UnsafeUnpin for PredictionCreateOrderRequestBuilder
impl UnwindSafe for PredictionCreateOrderRequestBuilder
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