Struct mpl_token_metadata::state::ReservationListV2
source · [−]#[repr(C)]pub struct ReservationListV2 {
pub key: Key,
pub master_edition: Pubkey,
pub supply_snapshot: Option<u64>,
pub reservations: Vec<Reservation>,
pub total_reservation_spots: u64,
pub current_reservation_spots: u64,
}
Fields
key: Key
master_edition: Pubkey
Present for reverse lookups
supply_snapshot: Option<u64>
What supply counter was on master_edition when this reservation was created.
reservations: Vec<Reservation>
total_reservation_spots: u64
How many reservations there are going to be, given on first set_reservation call
current_reservation_spots: u64
Cached count of reservation spots in the reservation vec to save on CPU.
Implementations
Trait Implementations
impl BorshDeserialize for ReservationListV2 where
Key: BorshDeserialize,
Pubkey: BorshDeserialize,
Option<u64>: BorshDeserialize,
Vec<Reservation>: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
impl BorshDeserialize for ReservationListV2 where
Key: BorshDeserialize,
Pubkey: BorshDeserialize,
Option<u64>: BorshDeserialize,
Vec<Reservation>: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
impl BorshSerialize for ReservationListV2 where
Key: BorshSerialize,
Pubkey: BorshSerialize,
Option<u64>: BorshSerialize,
Vec<Reservation>: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
impl BorshSerialize for ReservationListV2 where
Key: BorshSerialize,
Pubkey: BorshSerialize,
Option<u64>: BorshSerialize,
Vec<Reservation>: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
fn reservations(&self) -> Vec<Reservation>ⓘ
fn add_reservation(
&mut self,
reservation: Reservation,
offset: u64,
total_spot_offset: u64
) -> ProgramResult
Auto Trait Implementations
impl RefUnwindSafe for ReservationListV2
impl Send for ReservationListV2
impl Sync for ReservationListV2
impl Unpin for ReservationListV2
impl UnwindSafe for ReservationListV2
Blanket Implementations
pub default fn example() -> T
Mutably borrows from an owned value. Read more