pub struct CreateAccountExternalAccount { /* private fields */ }
Expand description
Create an external account for a given account.
Implementations§
Source§impl CreateAccountExternalAccount
impl CreateAccountExternalAccount
Sourcepub fn new(
account: impl Into<AccountId>,
external_account: impl Into<String>,
) -> Self
pub fn new( account: impl Into<AccountId>, external_account: impl Into<String>, ) -> Self
Construct a new CreateAccountExternalAccount
.
Sourcepub fn default_for_currency(self, default_for_currency: impl Into<bool>) -> Self
pub fn default_for_currency(self, default_for_currency: impl Into<bool>) -> Self
When set to true, or if this is the first external account added in this currency, this account becomes the default external account for its currency.
Sourcepub fn expand(self, expand: impl Into<Vec<String>>) -> Self
pub fn expand(self, expand: impl Into<Vec<String>>) -> Self
Specifies which fields in the response should be expanded.
Sourcepub fn metadata(self, metadata: impl Into<HashMap<String, String>>) -> Self
pub fn metadata(self, metadata: impl Into<HashMap<String, String>>) -> Self
Set of key-value pairs that you can attach to an object.
This can be useful for storing additional information about the object in a structured format.
Individual keys can be unset by posting an empty value to them.
All keys can be unset by posting an empty value to metadata
.
Source§impl CreateAccountExternalAccount
impl CreateAccountExternalAccount
Sourcepub async fn send<C: StripeClient>(
&self,
client: &C,
) -> Result<<Self as StripeRequest>::Output, C::Err>
pub async fn send<C: StripeClient>( &self, client: &C, ) -> Result<<Self as StripeRequest>::Output, C::Err>
Send the request and return the deserialized response.
Sourcepub fn send_blocking<C: StripeBlockingClient>(
&self,
client: &C,
) -> Result<<Self as StripeRequest>::Output, C::Err>
pub fn send_blocking<C: StripeBlockingClient>( &self, client: &C, ) -> Result<<Self as StripeRequest>::Output, C::Err>
Send the request and return the deserialized response, blocking until completion.
Trait Implementations§
Source§impl Clone for CreateAccountExternalAccount
impl Clone for CreateAccountExternalAccount
Source§fn clone(&self) -> CreateAccountExternalAccount
fn clone(&self) -> CreateAccountExternalAccount
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CreateAccountExternalAccount
impl Debug for CreateAccountExternalAccount
Source§impl StripeRequest for CreateAccountExternalAccount
impl StripeRequest for CreateAccountExternalAccount
Source§type Output = ExternalAccount
type Output = ExternalAccount
The data returned from the eventual API call.
Source§fn build(&self) -> RequestBuilder
fn build(&self) -> RequestBuilder
Convert the struct into library-agnostic data that can be used by compatible
clients to make API calls.
Source§fn customize(&self) -> CustomizableStripeRequest<Self::Output>
fn customize(&self) -> CustomizableStripeRequest<Self::Output>
Convert to a builder allowing per-request customization.
Auto Trait Implementations§
impl Freeze for CreateAccountExternalAccount
impl RefUnwindSafe for CreateAccountExternalAccount
impl Send for CreateAccountExternalAccount
impl Sync for CreateAccountExternalAccount
impl Unpin for CreateAccountExternalAccount
impl UnwindSafe for CreateAccountExternalAccount
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