Struct mpl_hydra::state::FanoutMint
source · pub struct FanoutMint {
pub mint: Pubkey,
pub fanout: Pubkey,
pub token_account: Pubkey,
pub total_inflow: u64,
pub last_snapshot_amount: u64,
pub bump_seed: u8,
}
Fields§
§mint: Pubkey
§fanout: Pubkey
§token_account: Pubkey
§total_inflow: u64
§last_snapshot_amount: u64
§bump_seed: u8
Trait Implementations§
source§impl AccountDeserialize for FanoutMint
impl AccountDeserialize for FanoutMint
source§fn try_deserialize(buf: &mut &[u8]) -> Result<Self>
fn try_deserialize(buf: &mut &[u8]) -> Result<Self>
Deserializes previously initialized account data. Should fail for all
uninitialized accounts, where the bytes are zeroed. Implementations
should be unique to a particular account type so that one can never
successfully deserialize the data of one account type into another.
For example, if the SPL token program were to implement this trait,
it should be impossible to deserialize a
Mint
account into a token
Account
.source§fn try_deserialize_unchecked(buf: &mut &[u8]) -> Result<Self>
fn try_deserialize_unchecked(buf: &mut &[u8]) -> Result<Self>
Deserializes account data without checking the account discriminator.
This should only be used on account initialization, when the bytes of
the account are zeroed.
source§impl AccountSerialize for FanoutMint
impl AccountSerialize for FanoutMint
source§impl BorshDeserialize for FanoutMintwhere
Pubkey: BorshDeserialize,
u64: BorshDeserialize,
u8: BorshDeserialize,
impl BorshDeserialize for FanoutMintwhere Pubkey: BorshDeserialize, u64: BorshDeserialize, u8: BorshDeserialize,
source§impl BorshSerialize for FanoutMintwhere
Pubkey: BorshSerialize,
u64: BorshSerialize,
u8: BorshSerialize,
impl BorshSerialize for FanoutMintwhere Pubkey: BorshSerialize, u64: BorshSerialize, u8: BorshSerialize,
source§impl Clone for FanoutMint
impl Clone for FanoutMint
source§fn clone(&self) -> FanoutMint
fn clone(&self) -> FanoutMint
Returns a copy 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 FanoutMint
impl Debug for FanoutMint
source§impl Default for FanoutMint
impl Default for FanoutMint
source§fn default() -> FanoutMint
fn default() -> FanoutMint
Returns the “default value” for a type. Read more
source§impl Discriminator for FanoutMint
impl Discriminator for FanoutMint
const DISCRIMINATOR: [u8; 8] = _
fn discriminator() -> [u8; 8]
Auto Trait Implementations§
impl RefUnwindSafe for FanoutMint
impl Send for FanoutMint
impl Sync for FanoutMint
impl Unpin for FanoutMint
impl UnwindSafe for FanoutMint
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