pub struct UserStats {Show 15 fields
pub authority: Pubkey,
pub referrer: Pubkey,
pub fees: UserFees,
pub next_epoch_ts: i64,
pub maker_volume30d: u64,
pub taker_volume30d: u64,
pub filler_volume30d: u64,
pub last_maker_volume30d_ts: i64,
pub last_taker_volume30d_ts: i64,
pub last_filler_volume30d_ts: i64,
pub if_staked_quote_asset_amount: u64,
pub number_of_sub_accounts: u16,
pub number_of_sub_accounts_created: u16,
pub is_referrer: bool,
pub padding: [u8; 51],
}Expand description
Account: UserStats
Fields§
§referrer: Pubkey§fees: UserFees§next_epoch_ts: i64§maker_volume30d: u64§taker_volume30d: u64§filler_volume30d: u64§last_maker_volume30d_ts: i64§last_taker_volume30d_ts: i64§last_filler_volume30d_ts: i64§if_staked_quote_asset_amount: u64§number_of_sub_accounts: u16§number_of_sub_accounts_created: u16§is_referrer: bool§padding: [u8; 51]Trait Implementations§
Source§impl AccountDeserialize for UserStats
impl AccountDeserialize for UserStats
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 UserStats
impl AccountSerialize for UserStats
Source§impl BorshDeserialize for UserStatswhere
Pubkey: BorshDeserialize,
UserFees: BorshDeserialize,
i64: BorshDeserialize,
u64: BorshDeserialize,
u16: BorshDeserialize,
bool: BorshDeserialize,
[u8; 51]: BorshDeserialize,
impl BorshDeserialize for UserStatswhere
Pubkey: BorshDeserialize,
UserFees: BorshDeserialize,
i64: BorshDeserialize,
u64: BorshDeserialize,
u16: BorshDeserialize,
bool: BorshDeserialize,
[u8; 51]: BorshDeserialize,
fn deserialize_reader<R: Read>(reader: &mut R) -> Result<Self, Error>
Source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
Source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
Source§impl BorshSerialize for UserStatswhere
Pubkey: BorshSerialize,
UserFees: BorshSerialize,
i64: BorshSerialize,
u64: BorshSerialize,
u16: BorshSerialize,
bool: BorshSerialize,
[u8; 51]: BorshSerialize,
impl BorshSerialize for UserStatswhere
Pubkey: BorshSerialize,
UserFees: BorshSerialize,
i64: BorshSerialize,
u64: BorshSerialize,
u16: BorshSerialize,
bool: BorshSerialize,
[u8; 51]: BorshSerialize,
Source§impl Discriminator for UserStats
impl Discriminator for UserStats
Source§const DISCRIMINATOR: &'static [u8]
const DISCRIMINATOR: &'static [u8]
Discriminator slice. Read more
impl Copy for UserStats
Auto Trait Implementations§
impl Freeze for UserStats
impl RefUnwindSafe for UserStats
impl Send for UserStats
impl Sync for UserStats
impl Unpin for UserStats
impl UnwindSafe for UserStats
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