Struct gapi_grpc::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,
}

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

impl Clone for PricingInfo[src]

impl Debug for PricingInfo[src]

impl Default for PricingInfo[src]

impl Message for PricingInfo[src]

impl PartialEq<PricingInfo> for PricingInfo[src]

impl StructuralPartialEq for PricingInfo[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]