pub struct PayoutsClient { /* private fields */ }Expand description
Client for payouts operations.
Implementations§
Source§impl PayoutsClient
impl PayoutsClient
pub fn new(client: Client) -> Self
Sourcepub async fn list_payouts(
&self,
query: Option<ListPayoutsQuery>,
) -> Result<ListPayoutsResponse, Error>
pub async fn list_payouts( &self, query: Option<ListPayoutsQuery>, ) -> Result<ListPayoutsResponse, Error>
List payouts with optional filtering and pagination.
Sourcepub async fn create_payout(
&self,
body: CreatePayoutRequest,
) -> Result<Value, Error>
pub async fn create_payout( &self, body: CreatePayoutRequest, ) -> Result<Value, Error>
Create a new payout to convert crypto assets to fiat currency.
Sourcepub async fn request_payout_quote(
&self,
body: RequestPayoutQuoteRequest,
) -> Result<RequestPayoutQuoteResponse, Error>
pub async fn request_payout_quote( &self, body: RequestPayoutQuoteRequest, ) -> Result<RequestPayoutQuoteResponse, Error>
Request a quote from a given provider for a payout. Returns estimated fiat amount and fees.
Sourcepub async fn get_payout_status(&self, payout_id: String) -> Result<Value, Error>
pub async fn get_payout_status(&self, payout_id: String) -> Result<Value, Error>
Retrieve the current status of a payout by its ID.
Sourcepub async fn create_payout_action(
&self,
payout_id: String,
body: CreatePayoutActionRequest,
) -> Result<CreatePayoutActionResponse, Error>
pub async fn create_payout_action( &self, payout_id: String, body: CreatePayoutActionRequest, ) -> Result<CreatePayoutActionResponse, Error>
Perform an action on a payout, such as confirming or canceling.
Trait Implementations§
Source§impl Clone for PayoutsClient
impl Clone for PayoutsClient
Source§fn clone(&self) -> PayoutsClient
fn clone(&self) -> PayoutsClient
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 !RefUnwindSafe for PayoutsClient
impl !UnwindSafe for PayoutsClient
impl Freeze for PayoutsClient
impl Send for PayoutsClient
impl Sync for PayoutsClient
impl Unpin for PayoutsClient
impl UnsafeUnpin for PayoutsClient
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