pub struct PersonalOffer {
pub localized_title: LocalizedName,
pub pricing: Option<PersonalOfferPricing>,
pub normal_pricing: Option<PersonalOfferNormalPricing>,
pub products: Vec<PersonalOfferProduct>,
pub remaining_quantity: Option<u32>,
pub valid_until: Option<String>,
}Fields§
§localized_title: LocalizedName§pricing: Option<PersonalOfferPricing>§normal_pricing: Option<PersonalOfferNormalPricing>§products: Vec<PersonalOfferProduct>§remaining_quantity: Option<u32>How many redemptions are left on the Plussa card. Distinct from valid_until:
an offer can still have time left but no redemptions, or the reverse.
valid_until: Option<String>Trait Implementations§
Source§impl Clone for PersonalOffer
impl Clone for PersonalOffer
Source§fn clone(&self) -> PersonalOffer
fn clone(&self) -> PersonalOffer
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 PersonalOffer
impl Debug for PersonalOffer
Source§impl<'de> Deserialize<'de> for PersonalOffer
impl<'de> Deserialize<'de> for PersonalOffer
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
Source§impl From<PersonalOffer> for PersonalOfferView
impl From<PersonalOffer> for PersonalOfferView
Source§fn from(o: PersonalOffer) -> Self
fn from(o: PersonalOffer) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PersonalOffer
impl RefUnwindSafe for PersonalOffer
impl Send for PersonalOffer
impl Sync for PersonalOffer
impl Unpin for PersonalOffer
impl UnsafeUnpin for PersonalOffer
impl UnwindSafe for PersonalOffer
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