Struct lpl_token_auth_rules::state::FrequencyAccount
source · pub struct FrequencyAccount {
pub key: Key,
pub last_update: i64,
pub period: i64,
}Expand description
An account containing frequency state.
Fields§
§key: KeyThe Key for this account which identifies it as a Frequency account.
last_update: i64The last time the frequency counter was updated.
period: i64The period which must transpire before the rule will succeed again.
Implementations§
Trait Implementations§
source§impl BorshDeserialize for FrequencyAccountwhere
Key: BorshDeserialize,
i64: BorshDeserialize,
impl BorshDeserialize for FrequencyAccountwhere Key: BorshDeserialize, i64: BorshDeserialize,
source§impl BorshSerialize for FrequencyAccountwhere
Key: BorshSerialize,
i64: BorshSerialize,
impl BorshSerialize for FrequencyAccountwhere Key: BorshSerialize, i64: BorshSerialize,
source§impl Clone for FrequencyAccount
impl Clone for FrequencyAccount
source§fn clone(&self) -> FrequencyAccount
fn clone(&self) -> FrequencyAccount
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 FrequencyAccount
impl Debug for FrequencyAccount
source§impl PartialEq<FrequencyAccount> for FrequencyAccount
impl PartialEq<FrequencyAccount> for FrequencyAccount
source§fn eq(&self, other: &FrequencyAccount) -> bool
fn eq(&self, other: &FrequencyAccount) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl SolanaAccount for FrequencyAccount
impl SolanaAccount for FrequencyAccount
source§fn key() -> Key
fn key() -> Key
Get the
Key for this Account. This key is to be stored in the first byte of the
Account data.source§fn from_account_info(account: &AccountInfo<'_>) -> Result<Self, ProgramError>
fn from_account_info(account: &AccountInfo<'_>) -> Result<Self, ProgramError>
BorshDeserialize the
AccountInfo into the Rust data structure.source§fn to_account_data(&self, account: &AccountInfo<'_>) -> ProgramResult
fn to_account_data(&self, account: &AccountInfo<'_>) -> ProgramResult
BorshSerialize the Rust data structure into the
Account data.