Enum google_api_proto::google::shopping::merchant::accounts::v1beta::tax_rule::RateCalculation
source · pub enum RateCalculation {
UseGoogleRate(bool),
SelfSpecifiedRateMicros(i64),
}
Expand description
What is the way to calculate tax rate for deliveries to this admin’s area. Can only be set on US states.
Variants§
UseGoogleRate(bool)
Rate that depends on delivery location: if merchant has a nexus in corresponding US state, rates from authorities with jurisdiction over delivery area are added up.
SelfSpecifiedRateMicros(i64)
A fixed rate specified in micros, where 100% = 1_000_000. Suitable for origin-based states.
Implementations§
source§impl RateCalculation
impl RateCalculation
sourcepub fn merge(
field: &mut Option<RateCalculation>,
tag: u32,
wire_type: WireType,
buf: &mut impl Buf,
ctx: DecodeContext,
) -> Result<(), DecodeError>
pub fn merge( field: &mut Option<RateCalculation>, tag: u32, wire_type: WireType, buf: &mut impl Buf, ctx: DecodeContext, ) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into self.
sourcepub fn encoded_len(&self) -> usize
pub fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Trait Implementations§
source§impl Clone for RateCalculation
impl Clone for RateCalculation
source§fn clone(&self) -> RateCalculation
fn clone(&self) -> RateCalculation
Returns a copy 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 RateCalculation
impl Debug for RateCalculation
source§impl PartialEq for RateCalculation
impl PartialEq for RateCalculation
source§fn eq(&self, other: &RateCalculation) -> bool
fn eq(&self, other: &RateCalculation) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for RateCalculation
impl StructuralPartialEq for RateCalculation
Auto Trait Implementations§
impl Freeze for RateCalculation
impl RefUnwindSafe for RateCalculation
impl Send for RateCalculation
impl Sync for RateCalculation
impl Unpin for RateCalculation
impl UnwindSafe for RateCalculation
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request