pub struct UpdateTaxSettings { /* private fields */ }Expand description
Updates Tax Settings parameters used in tax calculations.
All parameters are editable but none can be removed once set.
Implementations§
Source§impl UpdateTaxSettings
impl UpdateTaxSettings
Sourcepub fn defaults(self, defaults: impl Into<UpdateTaxSettingsDefaults>) -> Self
pub fn defaults(self, defaults: impl Into<UpdateTaxSettingsDefaults>) -> Self
Default configuration to be used on Stripe Tax calculations.
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 head_office(
self,
head_office: impl Into<UpdateTaxSettingsHeadOffice>,
) -> Self
pub fn head_office( self, head_office: impl Into<UpdateTaxSettingsHeadOffice>, ) -> Self
The place where your business is located.
Source§impl UpdateTaxSettings
impl UpdateTaxSettings
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 UpdateTaxSettings
impl Clone for UpdateTaxSettings
Source§fn clone(&self) -> UpdateTaxSettings
fn clone(&self) -> UpdateTaxSettings
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 UpdateTaxSettings
impl Debug for UpdateTaxSettings
Source§impl Default for UpdateTaxSettings
impl Default for UpdateTaxSettings
Source§impl Serialize for UpdateTaxSettings
impl Serialize for UpdateTaxSettings
Source§impl StripeRequest for UpdateTaxSettings
impl StripeRequest for UpdateTaxSettings
Source§type Output = TaxSettings
type Output = TaxSettings
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 UpdateTaxSettings
impl RefUnwindSafe for UpdateTaxSettings
impl Send for UpdateTaxSettings
impl Sync for UpdateTaxSettings
impl Unpin for UpdateTaxSettings
impl UnwindSafe for UpdateTaxSettings
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