#[repr(C)]pub struct DistributeTokens {
pub type_account: u8,
pub state_distribute_tokens: u8,
pub portfolio_address: Pubkey,
pub list_user_distribute: Vec<UserDistributeStruct>,
}Expand description
distribute account data.
Fields§
§type_account: u8The type of account .
state_distribute_tokens: u8state of the user portfolio.
portfolio_address: PubkeyThe portfolio depends of distribute token.
list_user_distribute: Vec<UserDistributeStruct>list of UserDistributeStruct
Trait Implementations§
Source§impl Clone for DistributeTokens
impl Clone for DistributeTokens
Source§fn clone(&self) -> DistributeTokens
fn clone(&self) -> DistributeTokens
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 DistributeTokens
impl Debug for DistributeTokens
Source§impl Default for DistributeTokens
impl Default for DistributeTokens
Source§fn default() -> DistributeTokens
fn default() -> DistributeTokens
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DistributeTokens
impl<'de> Deserialize<'de> for DistributeTokens
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 DistributeTokens
impl IsInitialized for DistributeTokens
Source§fn is_initialized(&self) -> bool
fn is_initialized(&self) -> bool
Is initialized
Source§impl PackDistributeTokens for DistributeTokens
impl PackDistributeTokens for DistributeTokens
Source§fn unpack_distribute_token(src: &[u8]) -> Result<Self, ProgramError>
fn unpack_distribute_token(src: &[u8]) -> Result<Self, ProgramError>
unpack distribute token
Source§fn pack_distribute_token(&self, dst: &mut [u8])
fn pack_distribute_token(&self, dst: &mut [u8])
pack distribute token
Source§impl PartialEq for DistributeTokens
impl PartialEq for DistributeTokens
Source§impl Serialize for DistributeTokens
impl Serialize for DistributeTokens
impl Sealed for DistributeTokens
impl StructuralPartialEq for DistributeTokens
Auto Trait Implementations§
impl Freeze for DistributeTokens
impl RefUnwindSafe for DistributeTokens
impl Send for DistributeTokens
impl Sync for DistributeTokens
impl Unpin for DistributeTokens
impl UnwindSafe for DistributeTokens
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