pub struct ProfileInfo {
pub name: Option<ShortString>,
pub bio: Option<ShortString>,
pub pfp: Option<ShortString>,
}
Fields§
§name: Option<ShortString>
Full name of the user.
bio: Option<ShortString>
Profile’s biography or description.
pfp: Option<ShortString>
URL of the user’s profile picture (pfp).
Trait Implementations§
Source§impl BorshDeserialize for ProfileInfo
impl BorshDeserialize for ProfileInfo
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 ProfileInfo
impl BorshSerialize for ProfileInfo
Source§impl Clone for ProfileInfo
impl Clone for ProfileInfo
Source§fn clone(&self) -> ProfileInfo
fn clone(&self) -> ProfileInfo
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 moreSource§impl CompressedDataChunk for ProfileInfo
impl CompressedDataChunk for ProfileInfo
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,
Source§impl Default for ProfileInfo
impl Default for ProfileInfo
Source§impl PartialEq for ProfileInfo
impl PartialEq for ProfileInfo
Source§impl ToSchema for ProfileInfo
impl ToSchema for ProfileInfo
fn schema() -> Schema
fn schema_value(&self) -> SchemaValue
impl StructuralPartialEq for ProfileInfo
Auto Trait Implementations§
impl Freeze for ProfileInfo
impl RefUnwindSafe for ProfileInfo
impl Send for ProfileInfo
impl Sync for ProfileInfo
impl Unpin for ProfileInfo
impl UnwindSafe for ProfileInfo
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