pub struct AvailableOffer {
pub offer_level: Option<String>,
pub name: Option<String>,
pub id: Option<i64>,
pub qualified_customers_complete: Option<bool>,
pub country_offer_infos: Option<Vec<CountryOfferInfo>>,
pub offer_type: Option<String>,
pub max_account_age: Option<i32>,
pub qualified_customer: Option<Vec<OfferCustomer>>,
pub terms: Option<String>,
pub show_special_offer_copy: Option<bool>,
pub available: Option<i32>,
pub description: Option<String>,
}Expand description
Available Offers to be distributed.
This type is not used in any activity, and only used as part of another schema.
Fields§
§offer_level: Option<String>Level of this offer.
name: Option<String>Name of the offer.
id: Option<i64>ID of this offer.
qualified_customers_complete: Option<bool>Whether or not the list of qualified customers is definitely complete.
country_offer_infos: Option<Vec<CountryOfferInfo>>Offer info by country.
offer_type: Option<String>Type of offer.
max_account_age: Option<i32>The maximum age of an account [in days] to be eligible.
qualified_customer: Option<Vec<OfferCustomer>>Customers who qualify for this offer.
terms: Option<String>Terms of the offer.
show_special_offer_copy: Option<bool>Should special text be shown on the offers page.
available: Option<i32>The number of codes for this offer that are available for distribution.
description: Option<String>Description of the offer.
Trait Implementations§
Source§impl Clone for AvailableOffer
impl Clone for AvailableOffer
Source§fn clone(&self) -> AvailableOffer
fn clone(&self) -> AvailableOffer
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AvailableOffer
impl Debug for AvailableOffer
Source§impl Default for AvailableOffer
impl Default for AvailableOffer
Source§fn default() -> AvailableOffer
fn default() -> AvailableOffer
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AvailableOffer
impl<'de> Deserialize<'de> for AvailableOffer
Source§fn 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
impl Part for AvailableOffer
Auto Trait Implementations§
impl Freeze for AvailableOffer
impl RefUnwindSafe for AvailableOffer
impl Send for AvailableOffer
impl Sync for AvailableOffer
impl Unpin for AvailableOffer
impl UnsafeUnpin for AvailableOffer
impl UnwindSafe for AvailableOffer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more