#[repr(C)]pub struct Portfolio {
pub type_account: u8,
pub creator_portfolio: Pubkey,
pub meta_data_url: Vec<u8>,
pub meta_data_hash: Vec<u8>,
pub is_initialized: u8,
pub asset_data_len: u8,
pub nft_token: u8,
pub version: u8,
pub splm_stake: Pubkey,
pub extended_data: Pubkey,
pub asset_data: Vec<AssetStruct>,
}Expand description
Portfolio data.
Fields§
§type_account: u8The type of account.
creator_portfolio: PubkeyThe creator of the portfolio was the only who can make changes on the portfolio account.
meta_data_url: Vec<u8>Save the data of the new portfolio.
meta_data_hash: Vec<u8>Hash of dataUrl to insure the immuability of data.
is_initialized: u8Is initialized portfolio.
asset_data_len: u8Length of assets by portfolio.
nft_token: u8Nft token stake.
version: u8version actual for portfolio struct.
splm_stake: PubkeyThe address of the splm_stake.
extended_data: PubkeyThe address of the extended_data.
asset_data: Vec<AssetStruct>Assets informations.
Trait Implementations§
Source§impl IsInitialized for Portfolio
check if portfolio is initialized
impl IsInitialized for Portfolio
check if portfolio is initialized
Source§fn is_initialized(&self) -> bool
fn is_initialized(&self) -> bool
Is initialized
Source§impl PackPortfolio for Portfolio
impl PackPortfolio for Portfolio
Source§fn unpack_portfolio(src: &[u8]) -> Result<Self, ProgramError>
fn unpack_portfolio(src: &[u8]) -> Result<Self, ProgramError>
unpack portfolio
Source§fn pack_portfolio(&self, dst: &mut [u8])
fn pack_portfolio(&self, dst: &mut [u8])
pack portfolio
impl Sealed for Portfolio
impl StructuralPartialEq for Portfolio
Auto Trait Implementations§
impl Freeze for Portfolio
impl RefUnwindSafe for Portfolio
impl Send for Portfolio
impl Sync for Portfolio
impl Unpin for Portfolio
impl UnwindSafe for Portfolio
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