Struct googleplay_protobuf::googleplay::Offer
source · [−]pub struct Offer {Show 18 fields
pub micros: Option<i64>,
pub currency_code: Option<String>,
pub formatted_amount: Option<String>,
pub converted_price: Vec<Offer>,
pub checkout_flow_required: Option<bool>,
pub full_price_micros: Option<i64>,
pub formatted_full_amount: Option<String>,
pub offer_type: Option<i32>,
pub rental_terms: Option<RentalTerms>,
pub on_sale_date: Option<i64>,
pub promotion_label: Vec<String>,
pub subscription_terms: Option<SubscriptionTerms>,
pub formatted_name: Option<String>,
pub formatted_description: Option<String>,
pub sale: Option<bool>,
pub message: Option<String>,
pub sale_end_timestamp: Option<i64>,
pub sale_message: Option<String>,
}
Fields
micros: Option<i64>
currency_code: Option<String>
formatted_amount: Option<String>
converted_price: Vec<Offer>
checkout_flow_required: Option<bool>
full_price_micros: Option<i64>
formatted_full_amount: Option<String>
offer_type: Option<i32>
rental_terms: Option<RentalTerms>
on_sale_date: Option<i64>
promotion_label: Vec<String>
subscription_terms: Option<SubscriptionTerms>
formatted_name: Option<String>
formatted_description: Option<String>
sale: Option<bool>
message: Option<String>
sale_end_timestamp: Option<i64>
sale_message: Option<String>
Implementations
sourceimpl Offer
impl Offer
sourcepub fn micros(&self) -> i64
pub fn micros(&self) -> i64
Returns the value of micros
, or the default value if micros
is unset.
sourcepub fn currency_code(&self) -> &str
pub fn currency_code(&self) -> &str
Returns the value of currency_code
, or the default value if currency_code
is unset.
sourcepub fn formatted_amount(&self) -> &str
pub fn formatted_amount(&self) -> &str
Returns the value of formatted_amount
, or the default value if formatted_amount
is unset.
sourcepub fn checkout_flow_required(&self) -> bool
pub fn checkout_flow_required(&self) -> bool
Returns the value of checkout_flow_required
, or the default value if checkout_flow_required
is unset.
sourcepub fn full_price_micros(&self) -> i64
pub fn full_price_micros(&self) -> i64
Returns the value of full_price_micros
, or the default value if full_price_micros
is unset.
sourcepub fn formatted_full_amount(&self) -> &str
pub fn formatted_full_amount(&self) -> &str
Returns the value of formatted_full_amount
, or the default value if formatted_full_amount
is unset.
sourcepub fn offer_type(&self) -> i32
pub fn offer_type(&self) -> i32
Returns the value of offer_type
, or the default value if offer_type
is unset.
sourcepub fn on_sale_date(&self) -> i64
pub fn on_sale_date(&self) -> i64
Returns the value of on_sale_date
, or the default value if on_sale_date
is unset.
sourcepub fn formatted_name(&self) -> &str
pub fn formatted_name(&self) -> &str
Returns the value of formatted_name
, or the default value if formatted_name
is unset.
sourcepub fn formatted_description(&self) -> &str
pub fn formatted_description(&self) -> &str
Returns the value of formatted_description
, or the default value if formatted_description
is unset.
sourcepub fn message(&self) -> &str
pub fn message(&self) -> &str
Returns the value of message
, or the default value if message
is unset.
sourcepub fn sale_end_timestamp(&self) -> i64
pub fn sale_end_timestamp(&self) -> i64
Returns the value of sale_end_timestamp
, or the default value if sale_end_timestamp
is unset.
sourcepub fn sale_message(&self) -> &str
pub fn sale_message(&self) -> &str
Returns the value of sale_message
, or the default value if sale_message
is unset.
Trait Implementations
sourceimpl Message for Offer
impl Message for Offer
sourcefn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
sourcefn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
B: BufMut,
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
B: BufMut,
Encodes the message to a buffer. Read more
sourcefn encode_to_vec(&self) -> Vec<u8, Global>
fn encode_to_vec(&self) -> Vec<u8, Global>
Encodes the message to a newly allocated buffer.
sourcefn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
B: BufMut,
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
B: BufMut,
Encodes the message with a length-delimiter to a buffer. Read more
sourcefn encode_length_delimited_to_vec(&self) -> Vec<u8, Global>
fn encode_length_delimited_to_vec(&self) -> Vec<u8, Global>
Encodes the message with a length-delimiter to a newly allocated buffer.
sourcefn decode<B>(buf: B) -> Result<Self, DecodeError> where
B: Buf,
Self: Default,
fn decode<B>(buf: B) -> Result<Self, DecodeError> where
B: Buf,
Self: Default,
Decodes an instance of the message from a buffer. Read more
sourcefn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
B: Buf,
Self: Default,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
B: Buf,
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
sourcefn merge<B>(&mut self, buf: B) -> Result<(), DecodeError> where
B: Buf,
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError> where
B: Buf,
Decodes an instance of the message from a buffer, and merges it into self
. Read more
sourcefn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError> where
B: Buf,
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError> where
B: Buf,
Decodes a length-delimited instance of the message from buffer, and
merges it into self
. Read more
impl StructuralPartialEq for Offer
Auto Trait Implementations
impl RefUnwindSafe for Offer
impl Send for Offer
impl Sync for Offer
impl Unpin for Offer
impl UnwindSafe for Offer
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more