Struct google_api_proto::google::cloud::billing::v1::PricingInfo
source · pub struct PricingInfo {
pub effective_time: Option<Timestamp>,
pub summary: String,
pub pricing_expression: Option<PricingExpression>,
pub aggregation_info: Option<AggregationInfo>,
pub currency_conversion_rate: f64,
}
Expand description
Represents the pricing information for a SKU at a single point of time.
Fields§
§effective_time: Option<Timestamp>
The timestamp from which this pricing was effective within the requested time range. This is guaranteed to be greater than or equal to the start_time field in the request and less than the end_time field in the request. If a time range was not specified in the request this field will be equivalent to a time within the last 12 hours, indicating the latest pricing info.
summary: String
An optional human readable summary of the pricing information, has a maximum length of 256 characters.
pricing_expression: Option<PricingExpression>
Expresses the pricing formula. See PricingExpression
for an example.
aggregation_info: Option<AggregationInfo>
Aggregation Info. This can be left unspecified if the pricing expression doesn’t require aggregation.
currency_conversion_rate: f64
Conversion rate used for currency conversion, from USD to the currency specified in the request. This includes any surcharge collected for billing in non USD currency. If a currency is not specified in the request this defaults to 1.0. Example: USD * currency_conversion_rate = JPY
Trait Implementations§
source§impl Clone for PricingInfo
impl Clone for PricingInfo
source§fn clone(&self) -> PricingInfo
fn clone(&self) -> PricingInfo
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PricingInfo
impl Debug for PricingInfo
source§impl Default for PricingInfo
impl Default for PricingInfo
source§impl Message for PricingInfo
impl Message for PricingInfo
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 PricingInfo
impl PartialEq for PricingInfo
source§fn eq(&self, other: &PricingInfo) -> bool
fn eq(&self, other: &PricingInfo) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PricingInfo
Auto Trait Implementations§
impl Freeze for PricingInfo
impl RefUnwindSafe for PricingInfo
impl Send for PricingInfo
impl Sync for PricingInfo
impl Unpin for PricingInfo
impl UnwindSafe for PricingInfo
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