pub struct GoogleResponse {
    pub expiry_time: Option<String>,
    pub price_currency_code: Option<String>,
    pub price_amount_micros: Option<String>,
    pub order_id: String,
    pub purchase_type: Option<i64>,
    pub product_id: Option<String>,
    pub purchase_state: Option<u32>,
}
Expand description

Fields

expiry_time: Option<String>

Time at which the subscription will expire, in milliseconds since the Epoch. Only set when it is a subscription

price_currency_code: Option<String>

ISO 4217 currency code for the subscription price.

price_amount_micros: Option<String>

Price of the subscription, not including tax. Price is expressed in micro-units, where 1,000,000 micro-units represents one unit of the currency.

order_id: String

The order id of the latest recurring order associated with the purchase of the subscription.

purchase_type: Option<i64>

The type of purchase of the subscription. This field is only set if this purchase was not made using the standard in-app billing flow. Possible values are: 0. Test (i.e. purchased from a license testing account) 1. Promo (i.e. purchased using a promo code)

product_id: Option<String>

The inapp product SKU.

purchase_state: Option<u32>

The purchase state of the order. Possible values are: 0. Purchased 1. Canceled 2. Pending

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

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