Struct google_content2::api::AccountTaxTaxRule[][src]

pub struct AccountTaxTaxRule {
    pub country: Option<String>,
    pub location_id: Option<String>,
    pub rate_percent: Option<String>,
    pub shipping_taxed: Option<bool>,
    pub use_global_rate: Option<bool>,
}
Expand description

Tax calculation rule to apply in a state or province (USA only).

This type is not used in any activity, and only used as part of another schema.

Fields

country: Option<String>

Country code in which tax is applicable.

location_id: Option<String>

Required. State (or province) is which the tax is applicable, described by its location ID (also called criteria ID).

rate_percent: Option<String>

Explicit tax rate in percent, represented as a floating point number without the percentage character. Must not be negative.

shipping_taxed: Option<bool>

If true, shipping charges are also taxed.

use_global_rate: Option<bool>

Whether the tax rate is taken from a global tax table or specified explicitly.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The resulting type after obtaining ownership.

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.