pub struct PlatformConfig {Show 13 fields
pub epoch: u64,
pub platform_fee_wallet: Pubkey,
pub platform_nft_wallet: Pubkey,
pub platform_scale: u64,
pub creator_scale: u64,
pub burn_scale: u64,
pub fee_rate: u64,
pub name: [u8; 64],
pub web: [u8; 256],
pub img: [u8; 256],
pub cpswap_config: Pubkey,
pub creator_fee_rate: u64,
pub transfer_fee_extension_auth: Pubkey,
}Fields§
§epoch: u64§platform_fee_wallet: Pubkey§platform_nft_wallet: Pubkey§platform_scale: u64§creator_scale: u64§burn_scale: u64§fee_rate: u64§name: [u8; 64]§web: [u8; 256]§img: [u8; 256]§cpswap_config: Pubkey§creator_fee_rate: u64§transfer_fee_extension_auth: PubkeyImplementations§
Source§impl PlatformConfig
impl PlatformConfig
pub const DISCRIMINATOR: [u8; 8]
pub fn try_from_bytes(data: &[u8]) -> Result<Self, Error>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PlatformConfig
impl RefUnwindSafe for PlatformConfig
impl Send for PlatformConfig
impl Sync for PlatformConfig
impl Unpin for PlatformConfig
impl UnwindSafe for PlatformConfig
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