#[repr(C)]pub struct VaultRatioCache {
pub total_token_a: u64,
pub total_token_b: u64,
pub lp_supply: u64,
pub cached_at: i64,
}Fields§
§total_token_a: u64Total amount of tokenA managed by the vault
total_token_b: u64Total amount of tokenB managed by the vault
lp_supply: u64The total supply of vault LP tokens
cached_at: i64The Unix timestamp for when the cache was last updated
Trait Implementations§
Source§impl BorshDeserialize for VaultRatioCache
impl BorshDeserialize for VaultRatioCache
Source§impl BorshSerialize for VaultRatioCache
impl BorshSerialize for VaultRatioCache
Source§impl Clone for VaultRatioCache
impl Clone for VaultRatioCache
Source§fn clone(&self) -> VaultRatioCache
fn clone(&self) -> VaultRatioCache
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 moreimpl Copy for VaultRatioCache
Auto Trait Implementations§
impl Freeze for VaultRatioCache
impl RefUnwindSafe for VaultRatioCache
impl Send for VaultRatioCache
impl Sync for VaultRatioCache
impl Unpin for VaultRatioCache
impl UnwindSafe for VaultRatioCache
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more