pub struct CandyMachineData {
pub items_available: u64,
pub max_supply: u64,
pub is_mutable: bool,
pub config_line_settings: Option<ConfigLineSettings>,
pub hidden_settings: Option<HiddenSettings>,
}Expand description
Candy machine configuration data.
Fields§
§items_available: u64Number of assets available
max_supply: u64Max supply of each individual asset (default 0)
is_mutable: boolIndicates if the asset is mutable or not (default yes)
config_line_settings: Option<ConfigLineSettings>Config line settings
Hidden setttings
Implementations§
source§impl CandyMachineData
impl CandyMachineData
pub fn get_space_for_candy(&self) -> Result<usize>
pub fn get_config_line_size(&self) -> usize
Trait Implementations§
source§impl BorshDeserialize for CandyMachineData
impl BorshDeserialize for CandyMachineData
fn deserialize_reader<R: Read>(reader: &mut R) -> Result<Self, Error>
source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
source§impl BorshSerialize for CandyMachineData
impl BorshSerialize for CandyMachineData
source§impl Clone for CandyMachineData
impl Clone for CandyMachineData
source§fn clone(&self) -> CandyMachineData
fn clone(&self) -> CandyMachineData
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for CandyMachineData
impl Debug for CandyMachineData
source§impl Default for CandyMachineData
impl Default for CandyMachineData
source§fn default() -> CandyMachineData
fn default() -> CandyMachineData
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CandyMachineData
impl RefUnwindSafe for CandyMachineData
impl Send for CandyMachineData
impl Sync for CandyMachineData
impl Unpin for CandyMachineData
impl UnwindSafe for CandyMachineData
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> 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