pub struct Profile {
pub project: Pubkey,
pub user_id: u64,
pub identity: ShortString,
pub info: ProfileInfo,
pub platform_data: PlatformData,
pub custom_data: CustomData,
pub placeholder_1: PlaceHolder,
pub placeholder_2: PlaceHolder,
pub placeholder_3: PlaceHolder,
pub placeholder_4: PlaceHolder,
}
Expand description
Account representing user profile information. This account stores a user’s profile data associated with a specific project. PDA: [ ‘profile’, project, user, identity ] Category: user_state
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: ProfileInfo
Profile basic info
platform_data: PlatformData
HashMap storing profile data as key-value pairs.
custom_data: CustomData
HashMap storing profile data as key-value pairs.
placeholder_1: PlaceHolder
§placeholder_2: PlaceHolder
§placeholder_3: PlaceHolder
§placeholder_4: PlaceHolder
Implementations§
Source§impl Profile
impl Profile
pub fn to_compressed(&self) -> ProfileCompressed
Trait Implementations§
Source§impl BorshDeserialize for Profile
impl BorshDeserialize for Profile
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 Profile
impl BorshSerialize for Profile
Source§impl CompressedData for Profile
impl CompressedData for Profile
fn event_stream(&self) -> CompressedDataEventStreamwhere
Self: BorshSerialize + ToSchema,
fn emit<'info>(
&self,
slot: u64,
leaf_idx: u32,
merkle_tree: &AccountInfo<'info>,
log_wrapper: &Program<'info, Noop>,
seq_offset: u64,
) -> Result<(), Error>where
Self: BorshSerialize + ToSchema,
Auto Trait Implementations§
impl Freeze for Profile
impl RefUnwindSafe for Profile
impl Send for Profile
impl Sync for Profile
impl Unpin for Profile
impl UnwindSafe for Profile
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