#[repr(C)]pub struct ExternalPriceAccount {
pub key: Key,
pub price_per_share: u64,
pub price_mint: Pubkey,
pub allowed_to_combine: bool,
}Fields§
§key: Key§price_mint: PubkeyMint of the currency we are pricing the shares against, should be same as redeem_treasury. Most likely will be USDC mint most of the time.
allowed_to_combine: boolWhether or not combination has been allowed for this vault.
Implementations§
Source§impl ExternalPriceAccount
impl ExternalPriceAccount
pub fn from_account_info( a: &AccountInfo<'_>, ) -> Result<ExternalPriceAccount, ProgramError>
Trait Implementations§
Source§impl BorshDeserialize for ExternalPriceAccountwhere
Key: BorshDeserialize,
u64: BorshDeserialize,
Pubkey: BorshDeserialize,
bool: BorshDeserialize,
impl BorshDeserialize for ExternalPriceAccountwhere
Key: BorshDeserialize,
u64: BorshDeserialize,
Pubkey: BorshDeserialize,
bool: BorshDeserialize,
Source§impl Clone for ExternalPriceAccount
impl Clone for ExternalPriceAccount
Source§fn clone(&self) -> ExternalPriceAccount
fn clone(&self) -> ExternalPriceAccount
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 moreAuto Trait Implementations§
impl Freeze for ExternalPriceAccount
impl RefUnwindSafe for ExternalPriceAccount
impl Send for ExternalPriceAccount
impl Sync for ExternalPriceAccount
impl Unpin for ExternalPriceAccount
impl UnwindSafe for ExternalPriceAccount
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