Struct cardinal_time_invalidator::state::TimeInvalidator
source · pub struct TimeInvalidator {
pub bump: u8,
pub token_manager: Pubkey,
pub payment_manager: Pubkey,
pub collector: Pubkey,
pub expiration: Option<i64>,
pub duration_seconds: Option<i64>,
pub extension_payment_amount: Option<u64>,
pub extension_duration_seconds: Option<u64>,
pub extension_payment_mint: Option<Pubkey>,
pub max_expiration: Option<i64>,
pub disable_partial_extension: Option<bool>,
}Fields§
§bump: u8§token_manager: Pubkey§payment_manager: Pubkey§collector: Pubkey§expiration: Option<i64>§duration_seconds: Option<i64>§extension_payment_amount: Option<u64>§extension_duration_seconds: Option<u64>§extension_payment_mint: Option<Pubkey>§max_expiration: Option<i64>§disable_partial_extension: Option<bool>Trait Implementations§
source§impl AccountDeserialize for TimeInvalidator
impl AccountDeserialize for TimeInvalidator
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 TimeInvalidator
impl AccountSerialize for TimeInvalidator
source§impl BorshDeserialize for TimeInvalidatorwhere
u8: BorshDeserialize,
Pubkey: BorshDeserialize,
Option<i64>: BorshDeserialize,
Option<u64>: BorshDeserialize,
Option<Pubkey>: BorshDeserialize,
Option<bool>: BorshDeserialize,
impl BorshDeserialize for TimeInvalidatorwhere u8: BorshDeserialize, Pubkey: BorshDeserialize, Option<i64>: BorshDeserialize, Option<u64>: BorshDeserialize, Option<Pubkey>: BorshDeserialize, Option<bool>: BorshDeserialize,
source§impl BorshSerialize for TimeInvalidatorwhere
u8: BorshSerialize,
Pubkey: BorshSerialize,
Option<i64>: BorshSerialize,
Option<u64>: BorshSerialize,
Option<Pubkey>: BorshSerialize,
Option<bool>: BorshSerialize,
impl BorshSerialize for TimeInvalidatorwhere u8: BorshSerialize, Pubkey: BorshSerialize, Option<i64>: BorshSerialize, Option<u64>: BorshSerialize, Option<Pubkey>: BorshSerialize, Option<bool>: BorshSerialize,
source§impl Clone for TimeInvalidator
impl Clone for TimeInvalidator
source§fn clone(&self) -> TimeInvalidator
fn clone(&self) -> TimeInvalidator
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 more