pub struct PostTriggerV2DepositCraftRequestBuilder { /* private fields */ }Expand description
Dependency-free builder for [#struct_name].
Implementations§
Source§impl PostTriggerV2DepositCraftRequestBuilder
impl PostTriggerV2DepositCraftRequestBuilder
Sourcepub fn new(
amount: String,
input_mint: String,
order_type: PostTriggerV2DepositCraftRequestOrderType,
output_mint: String,
user_address: String,
) -> Self
pub fn new( amount: String, input_mint: String, order_type: PostTriggerV2DepositCraftRequestOrderType, output_mint: String, user_address: String, ) -> Self
Start a builder with every required wire field.
Sourcepub fn order_sub_type(
self,
order_sub_type: PostTriggerV2DepositCraftRequestOrderSubType,
) -> Self
pub fn order_sub_type( self, order_sub_type: PostTriggerV2DepositCraftRequestOrderSubType, ) -> Self
Set the optional orderSubType request field.
Sourcepub fn build(self) -> PostTriggerV2DepositCraftRequest
pub fn build(self) -> PostTriggerV2DepositCraftRequest
Finish building the request model.
Trait Implementations§
Source§impl Clone for PostTriggerV2DepositCraftRequestBuilder
impl Clone for PostTriggerV2DepositCraftRequestBuilder
Source§fn clone(&self) -> PostTriggerV2DepositCraftRequestBuilder
fn clone(&self) -> PostTriggerV2DepositCraftRequestBuilder
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 PostTriggerV2DepositCraftRequestBuilder
impl RefUnwindSafe for PostTriggerV2DepositCraftRequestBuilder
impl Send for PostTriggerV2DepositCraftRequestBuilder
impl Sync for PostTriggerV2DepositCraftRequestBuilder
impl Unpin for PostTriggerV2DepositCraftRequestBuilder
impl UnsafeUnpin for PostTriggerV2DepositCraftRequestBuilder
impl UnwindSafe for PostTriggerV2DepositCraftRequestBuilder
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