pub struct Client { /* fields omitted */ }
Clones a new client with different headers.
This is the recommended way to send requests for many different Stripe accounts
or with different Meta, Extra, and Expand headers while using the same secret key.
Sets a value for the Stripe-Account header
This is recommended if you are acting as only one Account for the lifetime of the client.
Otherwise, prefer client.with(Headers{stripe_account: "acct_ABC", ..})
.
Make a GET
http request with just a path
Make a GET
http request with url query parameters
Make a DELETE
http request with just a path
Make a DELETE
http request with url query parameters
Make a POST
http request with just a path
Make a POST
http request with urlencoded body
Performs copy-assignment from source
. Read more
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static