#[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§

Deserializes this instance from a given slice of bytes. Updates the buffer to point at the remaining bytes.
Deserialize this instance from a slice of bytes.
Serialize this instance into a vector of bytes.
Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
This method tests for self and other values to be equal, and is used by ==.
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.