#[repr(C)]pub struct NFTAccount {
pub type_account: u8,
pub owner: Pubkey,
pub stake: u8,
pub authority: Pubkey,
pub nonce: u8,
pub create_account_programm: Pubkey,
}Expand description
Account data.
Fields§
§type_account: u8The type of account.
owner: PubkeyThe owner of this account.
stake: u8The user stake his nft token.
The signer used by cross program .
nonce: u8Nonce used in program address for invoke a cross-program instruction..
create_account_programm: PubkeyCreate account program for cross program.
Trait Implementations§
Source§impl Clone for NFTAccount
impl Clone for NFTAccount
Source§fn clone(&self) -> NFTAccount
fn clone(&self) -> NFTAccount
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 NFTAccount
impl Debug for NFTAccount
Source§impl Default for NFTAccount
impl Default for NFTAccount
Source§fn default() -> NFTAccount
fn default() -> NFTAccount
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for NFTAccount
impl<'de> Deserialize<'de> for NFTAccount
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 IsInitialized for NFTAccount
impl IsInitialized for NFTAccount
Source§fn is_initialized(&self) -> bool
fn is_initialized(&self) -> bool
Is initialized
Source§impl Pack for NFTAccount
pack and unpack for nft account.
impl Pack for NFTAccount
pack and unpack for nft account.
Source§fn get_packed_len() -> usize
fn get_packed_len() -> usize
Get the packed length
Source§fn unpack(input: &[u8]) -> Result<Self, ProgramError>where
Self: IsInitialized,
fn unpack(input: &[u8]) -> Result<Self, ProgramError>where
Self: IsInitialized,
Unpack from slice and check if initialized
Source§fn unpack_unchecked(input: &[u8]) -> Result<Self, ProgramError>
fn unpack_unchecked(input: &[u8]) -> Result<Self, ProgramError>
Unpack from slice without checking if initialized
Source§impl PartialEq for NFTAccount
impl PartialEq for NFTAccount
Source§impl Serialize for NFTAccount
impl Serialize for NFTAccount
impl Sealed for NFTAccount
impl StructuralPartialEq for NFTAccount
Auto Trait Implementations§
impl Freeze for NFTAccount
impl RefUnwindSafe for NFTAccount
impl Send for NFTAccount
impl Sync for NFTAccount
impl Unpin for NFTAccount
impl UnwindSafe for NFTAccount
Blanket Implementations§
Source§impl<T> AbiEnumVisitor for T
impl<T> AbiEnumVisitor for T
default fn visit_for_abi( &self, _digester: &mut AbiDigester, ) -> Result<AbiDigester, DigestError>
Source§impl<T> AbiEnumVisitor for T
impl<T> AbiEnumVisitor for T
default fn visit_for_abi( &self, digester: &mut AbiDigester, ) -> Result<AbiDigester, DigestError>
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