pub struct Event {Show 13 fields
pub bump: u8,
pub authority: Pubkey,
pub scan_count: u32,
pub scan_bank: u32,
pub allow_creators: Vec<Pubkey>,
pub allow_collections: Vec<Pubkey>,
pub allow_mints: bool,
pub allow_addresses: bool,
pub payment_mint: Option<Pubkey>,
pub payment_amount: Option<u64>,
pub start_time: Option<i64>,
pub end_time: Option<i64>,
pub name: String,
}Fields§
§bump: u8§scan_count: u32§scan_bank: u32§allow_creators: Vec<Pubkey>§allow_collections: Vec<Pubkey>§allow_mints: bool§allow_addresses: bool§payment_mint: Option<Pubkey>§payment_amount: Option<u64>§start_time: Option<i64>§end_time: Option<i64>§name: StringTrait Implementations§
Source§impl AccountDeserialize for Event
impl AccountDeserialize for Event
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 Event
impl AccountSerialize for Event
Source§impl BorshDeserialize for Event
impl BorshDeserialize for Event
Source§impl BorshSerialize for Eventwhere
u8: BorshSerialize,
Pubkey: BorshSerialize,
u32: BorshSerialize,
Vec<Pubkey>: BorshSerialize,
bool: BorshSerialize,
Option<Pubkey>: BorshSerialize,
Option<u64>: BorshSerialize,
Option<i64>: BorshSerialize,
String: BorshSerialize,
impl BorshSerialize for Eventwhere
u8: BorshSerialize,
Pubkey: BorshSerialize,
u32: BorshSerialize,
Vec<Pubkey>: BorshSerialize,
bool: BorshSerialize,
Option<Pubkey>: BorshSerialize,
Option<u64>: BorshSerialize,
Option<i64>: BorshSerialize,
String: BorshSerialize,
Source§impl Discriminator for Event
impl Discriminator for Event
fn discriminator() -> [u8; 8]
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnsafeUnpin for Event
impl UnwindSafe for Event
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