pub struct PostTriggerV1CreateOrderRequestBuilder { /* private fields */ }Expand description
Dependency-free builder for [#struct_name].
Implementations§
Source§impl PostTriggerV1CreateOrderRequestBuilder
impl PostTriggerV1CreateOrderRequestBuilder
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
Start a builder with every required wire field.
Sourcepub fn compute_unit_price(self, compute_unit_price: String) -> Self
pub fn compute_unit_price(self, compute_unit_price: String) -> Self
Set the optional computeUnitPrice request field.
Sourcepub fn fee_account(self, fee_account: String) -> Self
pub fn fee_account(self, fee_account: String) -> Self
Set the optional feeAccount request field.
Sourcepub fn wrap_and_unwrap_sol(self, wrap_and_unwrap_sol: bool) -> Self
pub fn wrap_and_unwrap_sol(self, wrap_and_unwrap_sol: bool) -> Self
Set the optional wrapAndUnwrapSol request field.
Sourcepub fn build(self) -> PostTriggerV1CreateOrderRequest
pub fn build(self) -> PostTriggerV1CreateOrderRequest
Finish building the request model.
Trait Implementations§
Source§impl Clone for PostTriggerV1CreateOrderRequestBuilder
impl Clone for PostTriggerV1CreateOrderRequestBuilder
Source§fn clone(&self) -> PostTriggerV1CreateOrderRequestBuilder
fn clone(&self) -> PostTriggerV1CreateOrderRequestBuilder
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 PostTriggerV1CreateOrderRequestBuilder
impl RefUnwindSafe for PostTriggerV1CreateOrderRequestBuilder
impl Send for PostTriggerV1CreateOrderRequestBuilder
impl Sync for PostTriggerV1CreateOrderRequestBuilder
impl Unpin for PostTriggerV1CreateOrderRequestBuilder
impl UnsafeUnpin for PostTriggerV1CreateOrderRequestBuilder
impl UnwindSafe for PostTriggerV1CreateOrderRequestBuilder
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