pub struct PromoCodeInput {
pub program: Option<String>,
pub owner_tenant_id: String,
pub reward_tokens_per_subscription: i64,
pub subscriber_bonus_tokens: Option<i64>,
pub discount_percent: Option<f64>,
pub target_plan_id: Option<String>,
pub max_uses: Option<i64>,
pub active: Option<bool>,
}Expand description
PromoCodeInput model.
Fields§
§program: Option<String>§owner_tenant_id: String§reward_tokens_per_subscription: i64§subscriber_bonus_tokens: Option<i64>§discount_percent: Option<f64>§target_plan_id: Option<String>Resend this on every update — the write replaces, so omitting it unscopes the code.
max_uses: Option<i64>§active: Option<bool>Omitting this on an update REACTIVATES a deactivated code.
Server default: true.
Trait Implementations§
Source§impl Clone for PromoCodeInput
impl Clone for PromoCodeInput
Source§impl Debug for PromoCodeInput
impl Debug for PromoCodeInput
Source§impl Default for PromoCodeInput
impl Default for PromoCodeInput
Source§impl<'de> Deserialize<'de> for PromoCodeInput
impl<'de> Deserialize<'de> for PromoCodeInput
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 PartialEq for PromoCodeInput
impl PartialEq for PromoCodeInput
Source§impl Serialize for PromoCodeInput
impl Serialize for PromoCodeInput
impl StructuralPartialEq for PromoCodeInput
Auto Trait Implementations§
impl Freeze for PromoCodeInput
impl RefUnwindSafe for PromoCodeInput
impl Send for PromoCodeInput
impl Sync for PromoCodeInput
impl Unpin for PromoCodeInput
impl UnsafeUnpin for PromoCodeInput
impl UnwindSafe for PromoCodeInput
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