Struct google_api_proto::google::cloud::channel::v1::RepricingConfig
source · pub struct RepricingConfig {
pub effective_invoice_month: Option<Date>,
pub adjustment: Option<RepricingAdjustment>,
pub rebilling_basis: i32,
pub conditional_overrides: Vec<ConditionalOverride>,
pub granularity: Option<Granularity>,
}
Expand description
Configuration for repricing a Google bill over a period of time.
Fields§
§effective_invoice_month: Option<Date>
Required. The YearMonth when these adjustments activate. The Day field needs to be “0” since we only accept YearMonth repricing boundaries.
adjustment: Option<RepricingAdjustment>
Required. Information about the adjustment.
rebilling_basis: i32
Required. The [RebillingBasis][google.cloud.channel.v1.RebillingBasis] to use for this bill. Specifies the relative cost based on repricing costs you will apply.
conditional_overrides: Vec<ConditionalOverride>
The conditional overrides to apply for this configuration. If you list multiple overrides, only the first valid override is used. If you don’t list any overrides, the API uses the normal adjustment and rebilling basis.
granularity: Option<Granularity>
Required. Defines the granularity for repricing.
Implementations§
source§impl RepricingConfig
impl RepricingConfig
sourcepub fn rebilling_basis(&self) -> RebillingBasis
pub fn rebilling_basis(&self) -> RebillingBasis
Returns the enum value of rebilling_basis
, or the default if the field is set to an invalid enum value.
sourcepub fn set_rebilling_basis(&mut self, value: RebillingBasis)
pub fn set_rebilling_basis(&mut self, value: RebillingBasis)
Sets rebilling_basis
to the provided enum value.
Trait Implementations§
source§impl Clone for RepricingConfig
impl Clone for RepricingConfig
source§fn clone(&self) -> RepricingConfig
fn clone(&self) -> RepricingConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RepricingConfig
impl Debug for RepricingConfig
source§impl Default for RepricingConfig
impl Default for RepricingConfig
source§impl Message for RepricingConfig
impl Message for RepricingConfig
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for RepricingConfig
impl PartialEq for RepricingConfig
source§fn eq(&self, other: &RepricingConfig) -> bool
fn eq(&self, other: &RepricingConfig) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for RepricingConfig
Auto Trait Implementations§
impl Freeze for RepricingConfig
impl RefUnwindSafe for RepricingConfig
impl Send for RepricingConfig
impl Sync for RepricingConfig
impl Unpin for RepricingConfig
impl UnwindSafe for RepricingConfig
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
§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>
T
in a tonic::Request