pub struct ReferralConfig {
pub enabled: bool,
pub referral_rate: f64,
pub max_referrals_per_customer: usize,
}Expand description
Configuration for referral networks.
Fields§
§enabled: boolEnable referral generation
referral_rate: f64Rate of customers acquired via referral
max_referrals_per_customer: usizeMaximum referrals per customer
Trait Implementations§
Source§impl Clone for ReferralConfig
impl Clone for ReferralConfig
Source§fn clone(&self) -> ReferralConfig
fn clone(&self) -> ReferralConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 ReferralConfig
impl Debug for ReferralConfig
Auto Trait Implementations§
impl Freeze for ReferralConfig
impl RefUnwindSafe for ReferralConfig
impl Send for ReferralConfig
impl Sync for ReferralConfig
impl Unpin for ReferralConfig
impl UnwindSafe for ReferralConfig
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