pub struct InsuranceFund {
pub total_factor: u32,
}Expand description
Subset of the Drift InsuranceFund struct.
Only total_factor is needed for deposit rate calculation.
Fields§
§total_factor: u32Trait Implementations§
Source§impl Clone for InsuranceFund
impl Clone for InsuranceFund
Source§fn clone(&self) -> InsuranceFund
fn clone(&self) -> InsuranceFund
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 InsuranceFund
impl Debug for InsuranceFund
Source§impl Default for InsuranceFund
impl Default for InsuranceFund
Source§fn default() -> InsuranceFund
fn default() -> InsuranceFund
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for InsuranceFund
impl<'de> Deserialize<'de> for InsuranceFund
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 InsuranceFund
impl RefUnwindSafe for InsuranceFund
impl Send for InsuranceFund
impl Sync for InsuranceFund
impl Unpin for InsuranceFund
impl UnsafeUnpin for InsuranceFund
impl UnwindSafe for InsuranceFund
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