pub struct CouponCoffee {
pub coupon_channel: String,
pub coupon_id: String,
pub coupon_no: String,
pub is_available_all_store: bool,
pub period_type: String,
pub settled_store_id: i64,
pub store_id_list: Vec<i64>,
pub store_list: Vec<CouponCoffeeStore>,
pub threshold: i64,
pub use_limit: String,
}Expand description
Terms of a coffee coupon (coffee_coupon)
Fields§
§coupon_channel: StringCoupon channel, as returned by the server
coupon_id: StringCoupon ID, as returned by the server
coupon_no: StringVoucher template code, e.g. coffee-50 (not a personal redemption
code)
is_available_all_store: boolWhether the coupon can be used at every store
period_type: StringPeriod type (e.g. day), as returned by the server
settled_store_id: i64ID of the store the coupon was settled at (0 when not settled)
store_id_list: Vec<i64>IDs of the stores the coupon can be used at
store_list: Vec<CouponCoffeeStore>Stores the coupon can be used at
threshold: i64Threshold, as returned by the server
use_limit: StringUse limit (total or period), as returned by the server
Trait Implementations§
Source§impl Clone for CouponCoffee
impl Clone for CouponCoffee
Source§impl Debug for CouponCoffee
impl Debug for CouponCoffee
Source§impl Default for CouponCoffee
impl Default for CouponCoffee
Source§impl<'de> Deserialize<'de> for CouponCoffeewhere
CouponCoffee: Default,
impl<'de> Deserialize<'de> for CouponCoffeewhere
CouponCoffee: Default,
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
Auto Trait Implementations§
impl Freeze for CouponCoffee
impl RefUnwindSafe for CouponCoffee
impl Send for CouponCoffee
impl Sync for CouponCoffee
impl Unpin for CouponCoffee
impl UnsafeUnpin for CouponCoffee
impl UnwindSafe for CouponCoffee
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more