Struct iap::GoogleResponse
source · [−]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
sourceimpl Clone for GoogleResponse
impl Clone for GoogleResponse
sourcefn clone(&self) -> GoogleResponse
fn clone(&self) -> GoogleResponse
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for GoogleResponse
impl Debug for GoogleResponse
sourceimpl Default for GoogleResponse
impl Default for GoogleResponse
sourcefn default() -> GoogleResponse
fn default() -> GoogleResponse
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for GoogleResponse
impl<'de> Deserialize<'de> for GoogleResponse
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Serialize for GoogleResponse
impl Serialize for GoogleResponse
Auto Trait Implementations
impl RefUnwindSafe for GoogleResponse
impl Send for GoogleResponse
impl Sync for GoogleResponse
impl Unpin for GoogleResponse
impl UnwindSafe for GoogleResponse
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more