pub struct CandyMachineData {
pub items_available: u64,
pub symbol: String,
pub seller_fee_basis_points: u16,
pub max_supply: u64,
pub is_mutable: bool,
pub creators: Vec<Creator>,
pub config_line_settings: Option<ConfigLineSettings>,
pub hidden_settings: Option<HiddenSettings>,
}Expand description
Candy machine configuration data.
Fields§
§items_available: u64Number of assets available
symbol: StringSymbol for the asset
seller_fee_basis_points: u16Secondary sales royalty basis points (0-10000)
max_supply: u64Max supply of each individual asset (default 0)
is_mutable: boolIndicates if the asset is mutable or not (default yes)
creators: Vec<Creator>List of creators
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
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 duplicate 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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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