pub struct MintConfig {Show 14 fields
pub discriminator: Discriminator,
pub quote_mint: Pubkey,
pub create_requires_permission: bool,
pub create_permission_bitmap: [u8; 32],
pub default_creator_reward: u64,
pub default_graduation_reward: u64,
pub default_graduation_target: u64,
pub default_graduation_slot: u64,
pub default_buy_requires_permission: bool,
pub default_buy_permission_bitmap: [u8; 32],
pub default_max_buy_amount: u64,
pub default_sell_requires_permission: bool,
pub default_sell_permission_bitmap: [u8; 32],
pub default_max_sell_amount: u64,
}Fields§
§discriminator: Discriminator§quote_mint: Pubkey§create_requires_permission: bool§create_permission_bitmap: [u8; 32]§default_creator_reward: u64§default_graduation_reward: u64§default_graduation_target: u64§default_graduation_slot: u64§default_buy_requires_permission: bool§default_buy_permission_bitmap: [u8; 32]§default_max_buy_amount: u64§default_sell_requires_permission: bool§default_sell_permission_bitmap: [u8; 32]§default_max_sell_amount: u64Implementations§
Trait Implementations§
Source§impl BorshDeserialize for MintConfigwhere
Discriminator: BorshDeserialize,
Pubkey: BorshDeserialize,
bool: BorshDeserialize,
[u8; 32]: BorshDeserialize,
u64: BorshDeserialize,
impl BorshDeserialize for MintConfigwhere
Discriminator: BorshDeserialize,
Pubkey: BorshDeserialize,
bool: BorshDeserialize,
[u8; 32]: BorshDeserialize,
u64: BorshDeserialize,
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 MintConfigwhere
Discriminator: BorshSerialize,
Pubkey: BorshSerialize,
bool: BorshSerialize,
[u8; 32]: BorshSerialize,
u64: BorshSerialize,
impl BorshSerialize for MintConfigwhere
Discriminator: BorshSerialize,
Pubkey: BorshSerialize,
bool: BorshSerialize,
[u8; 32]: BorshSerialize,
u64: BorshSerialize,
Source§impl Clone for MintConfig
impl Clone for MintConfig
Source§fn clone(&self) -> MintConfig
fn clone(&self) -> MintConfig
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 MintConfig
impl Debug for MintConfig
Source§impl PartialEq for MintConfig
impl PartialEq for MintConfig
Source§impl<'a> TryFrom<&AccountInfo<'a>> for MintConfig
impl<'a> TryFrom<&AccountInfo<'a>> for MintConfig
impl Eq for MintConfig
impl StructuralPartialEq for MintConfig
Auto Trait Implementations§
impl Freeze for MintConfig
impl RefUnwindSafe for MintConfig
impl Send for MintConfig
impl Sync for MintConfig
impl Unpin for MintConfig
impl UnwindSafe for MintConfig
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