pub struct CouponPlatformFeeDeduct {
pub bz_types: Vec<CouponTargetType>,
pub bz_types_raw: Vec<i32>,
pub counter_id: String,
pub counter_name: String,
pub markets: Vec<String>,
pub usage_count: i64,
pub lave_usage_count: i64,
pub superposition: bool,
}Expand description
Terms of a platform fee deduction coupon (platform_fee_deduct)
Fields§
§bz_types: Vec<CouponTargetType>Instrument types the coupon applies to
bz_types_raw: Vec<i32>The server’s numeric codes of bz_types, including codes this SDK
does not know (Unknown in bz_types); always the same length and
order as bz_types (elements that are neither a code nor a known name
are left out of both)
counter_id: StringCounter ID
counter_name: StringCounter name
markets: Vec<String>Markets the coupon applies to
usage_count: i64Number of times used
lave_usage_count: i64Number of uses left
superposition: boolWhether the coupon can be combined with other coupons
Implementations§
Source§impl CouponPlatformFeeDeduct
impl CouponPlatformFeeDeduct
pub fn serialize<__S>(
__self: &CouponPlatformFeeDeduct,
__serializer: __S,
) -> Result<__S::Ok, __S::Error>where
__S: Serializer,
Source§impl<'de> CouponPlatformFeeDeductwhere
CouponPlatformFeeDeduct: Default,
impl<'de> CouponPlatformFeeDeductwhere
CouponPlatformFeeDeduct: Default,
pub fn deserialize<__D>(
__deserializer: __D,
) -> Result<CouponPlatformFeeDeduct, __D::Error>where
__D: Deserializer<'de>,
Trait Implementations§
Source§impl Clone for CouponPlatformFeeDeduct
impl Clone for CouponPlatformFeeDeduct
Source§impl Debug for CouponPlatformFeeDeduct
impl Debug for CouponPlatformFeeDeduct
Source§impl Default for CouponPlatformFeeDeduct
impl Default for CouponPlatformFeeDeduct
Source§impl<'de> Deserialize<'de> for CouponPlatformFeeDeduct
impl<'de> Deserialize<'de> for CouponPlatformFeeDeduct
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CouponPlatformFeeDeduct
impl RefUnwindSafe for CouponPlatformFeeDeduct
impl Send for CouponPlatformFeeDeduct
impl Sync for CouponPlatformFeeDeduct
impl Unpin for CouponPlatformFeeDeduct
impl UnsafeUnpin for CouponPlatformFeeDeduct
impl UnwindSafe for CouponPlatformFeeDeduct
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