#[repr(C)]pub struct UserPortfolio {
pub type_account: u8,
pub owner: Pubkey,
pub portfolio_address: Pubkey,
pub state: u8,
pub amount: u64,
pub version: u8,
pub extended_data: Pubkey,
pub splm_primary: Pubkey,
pub authority: Pubkey,
pub nonce: u8,
pub create_account_program: Pubkey,
pub splu_list: Vec<SpluStruct>,
}Expand description
User Portfolio data.
Fields§
§type_account: u8The type of account.
owner: PubkeyThe owner of user portfolio.
portfolio_address: PubkeyPortfolio depends of user portfolio.
state: u8State of PPU to know which step was completed.
amount: u64Last amount deposit or withraw.
version: u8Version of PPU struct.
extended_data: PubkeyAccount to be used to save extra data.
splm_primary: PubkeySplm primary which user deposit from.
Authority of PPU.
nonce: u8Nonce used in cross program.
create_account_program: PubkeyCreate account program used in cross program.
splu_list: Vec<SpluStruct>List of splu contain the amount transfered after swap.
Trait Implementations§
Source§impl Clone for UserPortfolio
impl Clone for UserPortfolio
Source§fn clone(&self) -> UserPortfolio
fn clone(&self) -> UserPortfolio
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 UserPortfolio
impl Debug for UserPortfolio
Source§impl Default for UserPortfolio
impl Default for UserPortfolio
Source§fn default() -> UserPortfolio
fn default() -> UserPortfolio
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UserPortfolio
impl<'de> Deserialize<'de> for UserPortfolio
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 UserPortfolio
impl IsInitialized for UserPortfolio
Source§fn is_initialized(&self) -> bool
fn is_initialized(&self) -> bool
Is initialized
Source§impl PackUserPortfolio for UserPortfolio
impl PackUserPortfolio for UserPortfolio
Source§fn unpack_user_portfolio(src: &[u8]) -> Result<Self, ProgramError>
fn unpack_user_portfolio(src: &[u8]) -> Result<Self, ProgramError>
unpack user portfolio
Source§fn pack_user_portfolio(&self, dst: &mut [u8])
fn pack_user_portfolio(&self, dst: &mut [u8])
pack user portfolio
Source§impl PartialEq for UserPortfolio
impl PartialEq for UserPortfolio
Source§impl Serialize for UserPortfolio
impl Serialize for UserPortfolio
impl Sealed for UserPortfolio
impl StructuralPartialEq for UserPortfolio
Auto Trait Implementations§
impl Freeze for UserPortfolio
impl RefUnwindSafe for UserPortfolio
impl Send for UserPortfolio
impl Sync for UserPortfolio
impl Unpin for UserPortfolio
impl UnwindSafe for UserPortfolio
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