pub struct MintConfig {Show 22 fields
pub discriminator: AccountDiscriminator,
pub instruction_discriminator: u8,
pub quote_mint: Pubkey,
pub create_requires_permission: bool,
pub create_permission_bitmap: [u8; 32],
pub default_buy_requires_permission: bool,
pub default_buy_permission_bitmap: [u8; 32],
pub default_sell_requires_permission: bool,
pub default_sell_permission_bitmap: [u8; 32],
pub padding1: [u8; 3],
pub default_creator_reward: u64,
pub default_graduation_reward: u64,
pub default_graduation_target: u64,
pub default_max_buy_amount: u64,
pub default_max_sell_amount: u64,
pub default_start_price: u128,
pub default_end_price: u128,
pub default_control_points: [u16; 4],
pub default_swap_fee_bps: u16,
pub default_quote_fee_bps: u16,
pub default_base_fee_bps: u16,
pub padding2: [u8; 1826],
}
Fields§
§discriminator: AccountDiscriminator
§instruction_discriminator: u8
§quote_mint: Pubkey
§create_requires_permission: bool
§create_permission_bitmap: [u8; 32]
§default_buy_requires_permission: bool
§default_buy_permission_bitmap: [u8; 32]
§default_sell_requires_permission: bool
§default_sell_permission_bitmap: [u8; 32]
§padding1: [u8; 3]
§default_creator_reward: u64
§default_graduation_reward: u64
§default_graduation_target: u64
§default_max_buy_amount: u64
§default_max_sell_amount: u64
§default_start_price: u128
§default_end_price: u128
§default_control_points: [u16; 4]
§default_swap_fee_bps: u16
§default_quote_fee_bps: u16
§default_base_fee_bps: u16
§padding2: [u8; 1826]
Trait Implementations§
Source§impl BorshDeserialize for MintConfigwhere
AccountDiscriminator: BorshDeserialize,
u8: BorshDeserialize,
Pubkey: BorshDeserialize,
bool: BorshDeserialize,
[u8; 32]: BorshDeserialize,
[u8; 3]: BorshDeserialize,
u64: BorshDeserialize,
u128: BorshDeserialize,
[u16; 4]: BorshDeserialize,
u16: BorshDeserialize,
[u8; 1826]: BorshDeserialize,
impl BorshDeserialize for MintConfigwhere
AccountDiscriminator: BorshDeserialize,
u8: BorshDeserialize,
Pubkey: BorshDeserialize,
bool: BorshDeserialize,
[u8; 32]: BorshDeserialize,
[u8; 3]: BorshDeserialize,
u64: BorshDeserialize,
u128: BorshDeserialize,
[u16; 4]: BorshDeserialize,
u16: BorshDeserialize,
[u8; 1826]: 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 CarbonDeserialize for MintConfig
impl CarbonDeserialize for MintConfig
const DISCRIMINATOR: &'static [u8]
fn deserialize(data: &[u8]) -> Option<Self>
Source§impl Clone for MintConfig
impl Clone for MintConfig
Source§fn clone(&self) -> MintConfig
fn clone(&self) -> MintConfig
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 MintConfig
impl Debug for MintConfig
Source§impl<'de> Deserialize<'de> for MintConfig
impl<'de> Deserialize<'de> for MintConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for MintConfig
impl Hash for MintConfig
Source§impl PartialEq for MintConfig
impl PartialEq for MintConfig
Source§impl Serialize for MintConfig
impl Serialize 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
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