Struct mpl_token_metadata::state::ReservationListV1
source · [−]#[repr(C)]pub struct ReservationListV1 {
pub key: Key,
pub master_edition: Pubkey,
pub supply_snapshot: Option<u64>,
pub reservations: Vec<ReservationV1>,
}
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<ReservationV1>
Implementations
sourceimpl ReservationListV1
impl ReservationListV1
pub fn from_account_info(
a: &AccountInfo<'_>
) -> Result<ReservationListV1, ProgramError>
Trait Implementations
sourceimpl BorshDeserialize for ReservationListV1 where
Key: BorshDeserialize,
Pubkey: BorshDeserialize,
Option<u64>: BorshDeserialize,
Vec<ReservationV1>: BorshDeserialize,
impl BorshDeserialize for ReservationListV1 where
Key: BorshDeserialize,
Pubkey: BorshDeserialize,
Option<u64>: BorshDeserialize,
Vec<ReservationV1>: BorshDeserialize,
sourceimpl BorshSerialize for ReservationListV1 where
Key: BorshSerialize,
Pubkey: BorshSerialize,
Option<u64>: BorshSerialize,
Vec<ReservationV1>: BorshSerialize,
impl BorshSerialize for ReservationListV1 where
Key: BorshSerialize,
Pubkey: BorshSerialize,
Option<u64>: BorshSerialize,
Vec<ReservationV1>: BorshSerialize,
sourceimpl Clone for ReservationListV1
impl Clone for ReservationListV1
sourcefn clone(&self) -> ReservationListV1
fn clone(&self) -> ReservationListV1
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ReservationListV1
impl Debug for ReservationListV1
sourceimpl PartialEq<ReservationListV1> for ReservationListV1
impl PartialEq<ReservationListV1> for ReservationListV1
sourcefn eq(&self, other: &ReservationListV1) -> bool
fn eq(&self, other: &ReservationListV1) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ReservationListV1) -> bool
fn ne(&self, other: &ReservationListV1) -> bool
This method tests for !=
.
sourceimpl ReservationList for ReservationListV1
impl ReservationList for ReservationListV1
fn master_edition(&self) -> Pubkey
fn supply_snapshot(&self) -> Option<u64>
fn reservations(&self) -> Vec<Reservation>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
fn set_master_edition(&mut self, key: Pubkey)
fn set_supply_snapshot(&mut self, supply: Option<u64>)
fn add_reservation(
&mut self,
reservation: Reservation,
_: u64,
_: u64
) -> ProgramResult
fn set_reservations(&mut self, reservations: Vec<Reservation>) -> ProgramResult
fn save(&self, account: &AccountInfo<'_>) -> ProgramResult
fn total_reservation_spots(&self) -> u64
fn set_total_reservation_spots(&mut self, _: u64)
fn current_reservation_spots(&self) -> u64
fn set_current_reservation_spots(&mut self, _: u64)
impl StructuralPartialEq for ReservationListV1
Auto Trait Implementations
impl RefUnwindSafe for ReservationListV1
impl Send for ReservationListV1
impl Sync for ReservationListV1
impl Unpin for ReservationListV1
impl UnwindSafe for ReservationListV1
Blanket Implementations
impl<T> AbiExample for T
impl<T> AbiExample for T
pub default fn example() -> T
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more