pub struct PostTriggerV1CreateOrderRequest {
pub compute_unit_price: Option<String>,
pub fee_account: Option<String>,
pub input_mint: String,
pub maker: String,
pub output_mint: String,
pub params: PostTriggerV1CreateOrderRequestParams,
pub payer: String,
pub wrap_and_unwrap_sol: Option<bool>,
}Fields§
§compute_unit_price: Option<String>In microlamports, defaults to 95th percentile of priority fees
fee_account: Option<String>- A token account (via the Referral Program) that will receive the fees
- Refer to Referral Program Github for more information
input_mint: String§maker: String§output_mint: String§params: PostTriggerV1CreateOrderRequestParams§payer: String§wrap_and_unwrap_sol: Option<bool>If either input or output mint is native SOL
Implementations§
Source§impl PostTriggerV1CreateOrderRequest
impl PostTriggerV1CreateOrderRequest
Sourcepub fn new(
input_mint: String,
maker: String,
output_mint: String,
params: PostTriggerV1CreateOrderRequestParams,
payer: String,
) -> Self
pub fn new( input_mint: String, maker: String, output_mint: String, params: PostTriggerV1CreateOrderRequestParams, payer: String, ) -> Self
Construct this request with every required wire field.
Sourcepub fn builder(
input_mint: String,
maker: String,
output_mint: String,
params: PostTriggerV1CreateOrderRequestParams,
payer: String,
) -> PostTriggerV1CreateOrderRequestBuilder
pub fn builder( input_mint: String, maker: String, output_mint: String, params: PostTriggerV1CreateOrderRequestParams, payer: String, ) -> PostTriggerV1CreateOrderRequestBuilder
Start a dependency-free builder with every required wire field.
Trait Implementations§
Source§impl Clone for PostTriggerV1CreateOrderRequest
impl Clone for PostTriggerV1CreateOrderRequest
Source§fn clone(&self) -> PostTriggerV1CreateOrderRequest
fn clone(&self) -> PostTriggerV1CreateOrderRequest
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 PostTriggerV1CreateOrderRequest
impl<'de> Deserialize<'de> for PostTriggerV1CreateOrderRequest
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 PostTriggerV1CreateOrderRequest
impl RefUnwindSafe for PostTriggerV1CreateOrderRequest
impl Send for PostTriggerV1CreateOrderRequest
impl Sync for PostTriggerV1CreateOrderRequest
impl Unpin for PostTriggerV1CreateOrderRequest
impl UnsafeUnpin for PostTriggerV1CreateOrderRequest
impl UnwindSafe for PostTriggerV1CreateOrderRequest
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