Struct googapis::google::cloud::billing::v1::PricingInfo [−][src]
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
fn merge_field<B>(
&mut self,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError> where
B: Buf,
Returns the encoded length of the message without a length delimiter.
Encodes the message to a buffer. Read more
Encodes the message to a newly allocated buffer.
Encodes the message with a length-delimiter to a buffer. Read more
Encodes the message with a length-delimiter to a newly allocated buffer.
Decodes an instance of the message from a buffer. Read more
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
Decodes a length-delimited instance of the message from the buffer.
Decodes an instance of the message from a buffer, and merges it into self
. Read more
Decodes a length-delimited instance of the message from buffer, and
merges it into self
. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for PricingInfo
impl Send for PricingInfo
impl Sync for PricingInfo
impl Unpin for PricingInfo
impl UnwindSafe for PricingInfo
Blanket Implementations
Mutably borrows from an owned value. Read more
Wrap the input message T
in a tonic::Request
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more