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

Returns the value of micros, or the default value if micros is unset.

Returns the value of currency_code, or the default value if currency_code is unset.

Returns the value of formatted_amount, or the default value if formatted_amount is unset.

Returns the value of checkout_flow_required, or the default value if checkout_flow_required is unset.

Returns the value of full_price_micros, or the default value if full_price_micros is unset.

Returns the value of formatted_full_amount, or the default value if formatted_full_amount is unset.

Returns the value of offer_type, or the default value if offer_type is unset.

Returns the value of on_sale_date, or the default value if on_sale_date is unset.

Returns the value of formatted_name, or the default value if formatted_name is unset.

Returns the value of formatted_description, or the default value if formatted_description is unset.

Returns the value of sale, or the default value if sale is unset.

Returns the value of message, or the default value if message is unset.

Returns the value of sale_end_timestamp, or the default value if sale_end_timestamp is unset.

Returns the value of sale_message, or the default value if sale_message is unset.

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

Returns the encoded length of the message without a length delimiter.

Clears the message, resetting all fields to their default.

Encodes the message to a buffer. Read more

Encodes the message to a newly allocated buffer.

Encodes the message with a length-delimiter to a buffer. Read more

Encodes the message with a length-delimiter to a newly allocated buffer.

Decodes an instance of the message from a buffer. Read more

Decodes a length-delimited instance of the message from the buffer.

Decodes an instance of the message from a buffer, and merges it into self. Read more

Decodes a length-delimited instance of the message from buffer, and merges it into self. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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.

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

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.