pub struct ProfileCompressed {
pub project: Pubkey,
pub user_id: u64,
pub identity: ShortString,
pub info: [u8; 32],
pub platform_data: [u8; 32],
pub custom_data: [u8; 32],
pub placeholder_1: [u8; 32],
pub placeholder_2: [u8; 32],
pub placeholder_3: [u8; 32],
pub placeholder_4: [u8; 32],
}
Fields§
§project: Pubkey
Public key of the project associated with this profile.
user_id: u64
Public key of the user associated with this profile.
identity: ShortString
Identity of the profile, which can be Main or a custom Value.
info: [u8; 32]
Profile basic info
platform_data: [u8; 32]
HashMap storing profile data as key-value pairs.
custom_data: [u8; 32]
HashMap storing profile data as key-value pairs.
placeholder_1: [u8; 32]
§placeholder_2: [u8; 32]
§placeholder_3: [u8; 32]
§placeholder_4: [u8; 32]
Trait Implementations§
Source§impl BorshDeserialize for ProfileCompressedwhere
Pubkey: BorshDeserialize,
u64: BorshDeserialize,
ShortString: BorshDeserialize,
[u8; 32]: BorshDeserialize,
impl BorshDeserialize for ProfileCompressedwhere
Pubkey: BorshDeserialize,
u64: BorshDeserialize,
ShortString: BorshDeserialize,
[u8; 32]: BorshDeserialize,
fn deserialize_reader<R: Read>(reader: &mut R) -> Result<Self, Error>
Source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
Source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
Source§impl BorshSerialize for ProfileCompressedwhere
Pubkey: BorshSerialize,
u64: BorshSerialize,
ShortString: BorshSerialize,
[u8; 32]: BorshSerialize,
impl BorshSerialize for ProfileCompressedwhere
Pubkey: BorshSerialize,
u64: BorshSerialize,
ShortString: BorshSerialize,
[u8; 32]: BorshSerialize,
Source§impl Clone for ProfileCompressed
impl Clone for ProfileCompressed
Source§fn clone(&self) -> ProfileCompressed
fn clone(&self) -> ProfileCompressed
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 moreAuto Trait Implementations§
impl Freeze for ProfileCompressed
impl RefUnwindSafe for ProfileCompressed
impl Send for ProfileCompressed
impl Sync for ProfileCompressed
impl Unpin for ProfileCompressed
impl UnwindSafe for ProfileCompressed
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