pub struct UpdateCashBalance { /* private fields */ }
Expand description
Changes the settings on a customer’s cash balance.
Implementations§
Source§impl UpdateCashBalance
impl UpdateCashBalance
Sourcepub fn new(customer: impl Into<CustomerId>) -> Self
pub fn new(customer: impl Into<CustomerId>) -> Self
Construct a new UpdateCashBalance
.
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 settings(self, settings: impl Into<UpdateCashBalanceSettings>) -> Self
pub fn settings(self, settings: impl Into<UpdateCashBalanceSettings>) -> Self
A hash of settings for this cash balance.
Source§impl UpdateCashBalance
impl UpdateCashBalance
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 UpdateCashBalance
impl Clone for UpdateCashBalance
Source§fn clone(&self) -> UpdateCashBalance
fn clone(&self) -> UpdateCashBalance
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 UpdateCashBalance
impl Debug for UpdateCashBalance
Source§impl Serialize for UpdateCashBalance
impl Serialize for UpdateCashBalance
Source§impl StripeRequest for UpdateCashBalance
impl StripeRequest for UpdateCashBalance
Source§type Output = CashBalance
type Output = CashBalance
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 UpdateCashBalance
impl RefUnwindSafe for UpdateCashBalance
impl Send for UpdateCashBalance
impl Sync for UpdateCashBalance
impl Unpin for UpdateCashBalance
impl UnwindSafe for UpdateCashBalance
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