[][src]Struct gpapi::protos::googleplay::Offer

pub struct Offer {
    pub micros: Option<i64>,
    pub currencyCode: SingularField<String>,
    pub formattedAmount: SingularField<String>,
    pub convertedPrice: RepeatedField<Offer>,
    pub checkoutFlowRequired: Option<bool>,
    pub fullPriceMicros: Option<i64>,
    pub formattedFullAmount: SingularField<String>,
    pub offerType: Option<i32>,
    pub rentalTerms: SingularPtrField<RentalTerms>,
    pub onSaleDate: Option<i64>,
    pub promotionLabel: RepeatedField<String>,
    pub subscriptionTerms: SingularPtrField<SubscriptionTerms>,
    pub formattedName: SingularField<String>,
    pub formattedDescription: SingularField<String>,
    pub preorder: Option<bool>,
    pub onSaleDateDisplayTimeZoneOffsetMsec: Option<i32>,
    pub licensedOfferType: Option<i32>,
    pub subscriptionContentTerms: SingularPtrField<SubscriptionContentTerms>,
    pub offerId: SingularField<String>,
    pub preorderFulfillmentDisplayDate: Option<i64>,
    pub licenseTerms: SingularPtrField<LicenseTerms>,
    pub temporarilyFree: Option<bool>,
    pub voucherTerms: SingularPtrField<VoucherTerms>,
    pub offerPayment: RepeatedField<OfferPayment>,
    pub repeatLastPayment: Option<bool>,
    pub buyButtonLabel: SingularField<String>,
    pub instantPurchaseEnabled: Option<bool>,
    pub unknown_fields: UnknownFields,
    pub cached_size: CachedSize,
}

Fields

micros: Option<i64>currencyCode: SingularField<String>formattedAmount: SingularField<String>convertedPrice: RepeatedField<Offer>checkoutFlowRequired: Option<bool>fullPriceMicros: Option<i64>formattedFullAmount: SingularField<String>offerType: Option<i32>rentalTerms: SingularPtrField<RentalTerms>onSaleDate: Option<i64>promotionLabel: RepeatedField<String>subscriptionTerms: SingularPtrField<SubscriptionTerms>formattedName: SingularField<String>formattedDescription: SingularField<String>preorder: Option<bool>onSaleDateDisplayTimeZoneOffsetMsec: Option<i32>licensedOfferType: Option<i32>subscriptionContentTerms: SingularPtrField<SubscriptionContentTerms>offerId: SingularField<String>preorderFulfillmentDisplayDate: Option<i64>licenseTerms: SingularPtrField<LicenseTerms>temporarilyFree: Option<bool>voucherTerms: SingularPtrField<VoucherTerms>offerPayment: RepeatedField<OfferPayment>repeatLastPayment: Option<bool>buyButtonLabel: SingularField<String>instantPurchaseEnabled: Option<bool>unknown_fields: UnknownFieldscached_size: CachedSize

Methods

impl Offer[src]

pub fn new() -> Offer[src]

pub fn get_micros(&self) -> i64[src]

pub fn get_currencyCode(&self) -> &str[src]

pub fn get_formattedAmount(&self) -> &str[src]

pub fn get_checkoutFlowRequired(&self) -> bool[src]

pub fn get_fullPriceMicros(&self) -> i64[src]

pub fn get_formattedFullAmount(&self) -> &str[src]

pub fn get_offerType(&self) -> i32[src]

pub fn get_onSaleDate(&self) -> i64[src]

pub fn get_formattedName(&self) -> &str[src]

pub fn get_formattedDescription(&self) -> &str[src]

pub fn get_preorder(&self) -> bool[src]

pub fn get_onSaleDateDisplayTimeZoneOffsetMsec(&self) -> i32[src]

pub fn get_licensedOfferType(&self) -> i32[src]

pub fn get_offerId(&self) -> &str[src]

pub fn get_preorderFulfillmentDisplayDate(&self) -> i64[src]

pub fn get_temporarilyFree(&self) -> bool[src]

pub fn get_repeatLastPayment(&self) -> bool[src]

pub fn get_buyButtonLabel(&self) -> &str[src]

pub fn get_instantPurchaseEnabled(&self) -> bool[src]

Trait Implementations

impl Default for Offer[src]

impl PartialEq<Offer> for Offer[src]

impl Clone for Offer[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Offer[src]

impl Message for Offer[src]

fn write_to(&self, os: &mut CodedOutputStream) -> Result<(), ProtobufError>

Write the message to the stream. Read more

fn write_length_delimited_to(
    &self,
    os: &mut CodedOutputStream
) -> Result<(), ProtobufError>

Write the message to the stream prepending the message with message length encoded as varint. Read more

fn write_length_delimited_to_vec(
    &self,
    vec: &mut Vec<u8>
) -> Result<(), ProtobufError>

Write the message to the vec, prepend the message with message length encoded as varint. Read more

fn merge_from_bytes(&mut self, bytes: &[u8]) -> Result<(), ProtobufError>

Update this message object with fields read from given stream.

fn check_initialized(&self) -> Result<(), ProtobufError>

Check if all required fields of this object are initialized.

fn write_to_writer(&self, w: &mut dyn Write) -> Result<(), ProtobufError>

Write the message to the writer.

fn write_to_vec(&self, v: &mut Vec<u8>) -> Result<(), ProtobufError>

Write the message to bytes vec.

fn write_to_bytes(&self) -> Result<Vec<u8>, ProtobufError>

Write the message to bytes vec.

fn write_length_delimited_to_writer(
    &self,
    w: &mut dyn Write
) -> Result<(), ProtobufError>

Write the message to the writer, prepend the message with message length encoded as varint. Read more

fn write_length_delimited_to_bytes(&self) -> Result<Vec<u8>, ProtobufError>

Write the message to the bytes vec, prepend the message with message length encoded as varint. Read more

impl Clear for Offer[src]

impl ProtobufValue for Offer[src]

impl Serialize for Offer[src]

impl<'de> Deserialize<'de> for Offer[src]

Auto Trait Implementations

impl Send for Offer

impl Sync for Offer

Blanket Implementations

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

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

type Owned = T

impl<T> From for T[src]

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

type Error = !

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

The type returned in the event of a conversion error.

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

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

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

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

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

The type returned in the event of a conversion error.

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

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Erased for T