[−][src]Struct stripe::TaxRate
The resource representing a Stripe "TaxRate".
For more details see https://stripe.com/docs/api/tax_rates/object.
Fields
id: TaxRateIdUnique identifier for the object.
active: boolDefaults to true.
When set to false, this tax rate cannot be applied to objects in the API, but will still be applied to subscriptions and invoices that already have it set.
created: TimestampTime at which the object was created.
Measured in seconds since the Unix epoch.
description: Option<String>An arbitrary string attached to the tax rate for your internal use only.
It will not be visible to your customers.
display_name: StringThe display name of the tax rates as it will appear to your customer on their receipt email, PDF, and the hosted invoice page.
inclusive: boolThis specifies if the tax rate is inclusive or exclusive.
jurisdiction: Option<String>The jurisdiction for the tax rate.
livemode: boolHas the value true if the object exists in live mode or the value false if the object exists in test mode.
metadata: MetadataSet 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.
percentage: f64This represents the tax rate percent out of 100.
Methods
impl TaxRate[src]
pub fn list(client: &Client, params: ListTaxRates) -> Response<List<TaxRate>>[src]
Returns a list of your tax rates.
Tax rates are returned sorted by creation date, with the most recently created tax rates appearing first.
pub fn create(client: &Client, params: CreateTaxRate) -> Response<TaxRate>[src]
Creates a new tax rate.
pub fn retrieve(
client: &Client,
id: &TaxRateId,
expand: &[&str]
) -> Response<TaxRate>[src]
client: &Client,
id: &TaxRateId,
expand: &[&str]
) -> Response<TaxRate>
Retrieves a tax rate with the given ID.
pub fn update(
client: &Client,
id: &TaxRateId,
params: UpdateTaxRate
) -> Response<TaxRate>[src]
client: &Client,
id: &TaxRateId,
params: UpdateTaxRate
) -> Response<TaxRate>
Updates an existing tax rate.
Trait Implementations
impl Object for TaxRate[src]
type Id = TaxRateId
The canonical id type for this object.
fn id(&self) -> Self::Id[src]
fn object(&self) -> &'static str[src]
impl Clone for TaxRate[src]
fn clone(&self) -> TaxRate[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Debug for TaxRate[src]
impl Serialize for TaxRate[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer, [src]
__S: Serializer,
impl<'de> Deserialize<'de> for TaxRate[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
__D: Deserializer<'de>,
Auto Trait Implementations
Blanket Implementations
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> From<T> for T[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>, [src]
T: Deserialize<'de>,
impl<T> Erased for T
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self