#[repr(C)]pub struct SetReservationListArgs {
pub reservations: Vec<Reservation>,
pub total_reservation_spots: Option<u64>,
pub offset: u64,
pub total_spot_offset: u64,
}
Fields
reservations: Vec<Reservation>
If set, means that no more than this number of editions can ever be minted. This is immutable.
total_reservation_spots: Option<u64>
should only be present on the very first call to set reservation list.
offset: u64
Where in the reservation list you want to insert this slice of reservations
total_spot_offset: u64
What the total spot offset is in the reservation list from the beginning to your slice of reservations. So if is going to be 4 total editions eventually reserved between your slice and the beginning of the array, split between 2 reservation entries, the offset variable above would be “2” since you start at entry 2 in 0 indexed array (first 2 taking 0 and 1) and because they each have 2 spots taken, this variable would be 4.
Trait Implementations
sourceimpl BorshDeserialize for SetReservationListArgs where
Vec<Reservation>: BorshDeserialize,
Option<u64>: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
impl BorshDeserialize for SetReservationListArgs where
Vec<Reservation>: BorshDeserialize,
Option<u64>: BorshDeserialize,
u64: BorshDeserialize,
u64: BorshDeserialize,
sourceimpl BorshSerialize for SetReservationListArgs where
Vec<Reservation>: BorshSerialize,
Option<u64>: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
impl BorshSerialize for SetReservationListArgs where
Vec<Reservation>: BorshSerialize,
Option<u64>: BorshSerialize,
u64: BorshSerialize,
u64: BorshSerialize,
sourceimpl Clone for SetReservationListArgs
impl Clone for SetReservationListArgs
sourcefn clone(&self) -> SetReservationListArgs
fn clone(&self) -> SetReservationListArgs
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 SetReservationListArgs
impl Debug for SetReservationListArgs
sourceimpl PartialEq<SetReservationListArgs> for SetReservationListArgs
impl PartialEq<SetReservationListArgs> for SetReservationListArgs
sourcefn eq(&self, other: &SetReservationListArgs) -> bool
fn eq(&self, other: &SetReservationListArgs) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &SetReservationListArgs) -> bool
fn ne(&self, other: &SetReservationListArgs) -> bool
This method tests for !=
.
impl StructuralPartialEq for SetReservationListArgs
Auto Trait Implementations
impl RefUnwindSafe for SetReservationListArgs
impl Send for SetReservationListArgs
impl Sync for SetReservationListArgs
impl Unpin for SetReservationListArgs
impl UnwindSafe for SetReservationListArgs
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)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more