pub struct UserInfo {
pub username: ShortString,
pub name: ShortString,
pub bio: ShortString,
pub pfp: ShortString,
}
Fields§
§username: ShortString
Username of the user.
name: ShortString
Full name of the user.
bio: ShortString
User’s biography or description.
pfp: ShortString
URL of the user’s profile picture (pfp).
Trait Implementations§
Source§impl BorshDeserialize for UserInfowhere
ShortString: BorshDeserialize,
impl BorshDeserialize for UserInfowhere
ShortString: 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 UserInfowhere
ShortString: BorshSerialize,
impl BorshSerialize for UserInfowhere
ShortString: BorshSerialize,
Source§impl CompressedDataChunk for UserInfo
impl CompressedDataChunk for UserInfo
const KEY: &'static str = "info"
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 UserInfo
impl RefUnwindSafe for UserInfo
impl Send for UserInfo
impl Sync for UserInfo
impl Unpin for UserInfo
impl UnwindSafe for UserInfo
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