pub struct User {
pub id: u64,
pub info: UserInfo,
pub wallets: Wallets,
pub social_info: SocialInfo,
pub placeholder_1: PlaceHolder,
pub placeholder_2: PlaceHolder,
pub placeholder_3: PlaceHolder,
pub placeholder_4: PlaceHolder,
}
Expand description
User State Account - This account represents the state of a user on the Solana blockchain. Category: user_state
Fields§
§id: u64
User unique id inside merkle tree
info: UserInfo
User basic info
wallets: Wallets
List of public keys representing wallets associated with the user.
User social info
placeholder_1: PlaceHolder
§placeholder_2: PlaceHolder
§placeholder_3: PlaceHolder
§placeholder_4: PlaceHolder
Implementations§
Source§impl User
impl User
pub fn to_compressed(&self) -> UserCompressed
Trait Implementations§
Source§impl BorshDeserialize for User
impl BorshDeserialize for User
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 User
impl BorshSerialize for User
Source§impl CompressedData for User
impl CompressedData for User
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 User
impl RefUnwindSafe for User
impl Send for User
impl Sync for User
impl Unpin for User
impl UnwindSafe for User
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