pub struct ReferralSchemaConfig {
pub enabled: bool,
pub referral_rate: f64,
}Expand description
Referral network configuration.
Fields§
§enabled: boolEnable referral generation.
referral_rate: f64Rate of customers acquired via referral.
Trait Implementations§
Source§impl Clone for ReferralSchemaConfig
impl Clone for ReferralSchemaConfig
Source§fn clone(&self) -> ReferralSchemaConfig
fn clone(&self) -> ReferralSchemaConfig
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 ReferralSchemaConfig
impl Debug for ReferralSchemaConfig
Source§impl Default for ReferralSchemaConfig
impl Default for ReferralSchemaConfig
Source§impl<'de> Deserialize<'de> for ReferralSchemaConfig
impl<'de> Deserialize<'de> for ReferralSchemaConfig
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 ReferralSchemaConfig
impl RefUnwindSafe for ReferralSchemaConfig
impl Send for ReferralSchemaConfig
impl Sync for ReferralSchemaConfig
impl Unpin for ReferralSchemaConfig
impl UnwindSafe for ReferralSchemaConfig
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