pub enum ValuationModel {
Linear,
Exponential(f64),
}Expand description
Valuation model for the token.
Variants§
Linear
Linear valuation model: valuation = users * initial_price.
Exponential(f64)
Exponential valuation model: valuation = initial_price * e^(users / factor). The factor is a parameter that controls the rate of growth. A higher factor will result in a slower growth rate.
Trait Implementations§
Source§impl Clone for ValuationModel
impl Clone for ValuationModel
Source§fn clone(&self) -> ValuationModel
fn clone(&self) -> ValuationModel
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 ValuationModel
impl Debug for ValuationModel
Source§impl PartialEq for ValuationModel
impl PartialEq for ValuationModel
impl StructuralPartialEq for ValuationModel
Auto Trait Implementations§
impl Freeze for ValuationModel
impl RefUnwindSafe for ValuationModel
impl Send for ValuationModel
impl Sync for ValuationModel
impl Unpin for ValuationModel
impl UnwindSafe for ValuationModel
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