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: u64

Number of assets available

symbol: String

Symbol for the asset

seller_fee_basis_points: u16

Secondary sales royalty basis points (0-10000)

max_supply: u64

Max supply of each individual asset (default 0)

is_mutable: bool

Indicates if the asset is mutable or not (default yes)

creators: Vec<Creator>

List of creators

config_line_settings: Option<ConfigLineSettings>

Config line settings

hidden_settings: Option<HiddenSettings>

Hidden setttings

Implementations

Validates the hidden and config lines settings against the maximum allowed values for name and URI.

Hidden settings take precedence over config lines since when hidden settings are used, the account does not need to include space for config lines.

Trait Implementations

Deserializes this instance from a given slice of bytes. Updates the buffer to point at the remaining bytes. Read more
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
Returns the “default value” for a type. Read more

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.