pub struct PlatformData {
pub custom: VecMap<ShortString, ShortVec<ShortString>>,
pub xp: u64,
pub achievements: ShortVec<u16>,
}
Expand description
Enum representing different types of profile data. Profile data can be a SingleValue, MultiValue.
Fields§
§custom: VecMap<ShortString, ShortVec<ShortString>>
§xp: u64
§achievements: ShortVec<u16>
Trait Implementations§
Source§impl BorshDeserialize for PlatformDatawhere
VecMap<ShortString, ShortVec<ShortString>>: BorshDeserialize,
u64: BorshDeserialize,
ShortVec<u16>: BorshDeserialize,
impl BorshDeserialize for PlatformDatawhere
VecMap<ShortString, ShortVec<ShortString>>: BorshDeserialize,
u64: BorshDeserialize,
ShortVec<u16>: 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 PlatformDatawhere
VecMap<ShortString, ShortVec<ShortString>>: BorshSerialize,
u64: BorshSerialize,
ShortVec<u16>: BorshSerialize,
impl BorshSerialize for PlatformDatawhere
VecMap<ShortString, ShortVec<ShortString>>: BorshSerialize,
u64: BorshSerialize,
ShortVec<u16>: BorshSerialize,
Source§impl Clone for PlatformData
impl Clone for PlatformData
Source§fn clone(&self) -> PlatformData
fn clone(&self) -> PlatformData
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 PlatformData
impl CompressedDataChunk for PlatformData
const KEY: &'static str = "platform_data"
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 PartialEq for PlatformData
impl PartialEq for PlatformData
Source§impl ToSchema for PlatformData
impl ToSchema for PlatformData
fn schema() -> Schema
fn schema_value(&self) -> SchemaValue
impl StructuralPartialEq for PlatformData
Auto Trait Implementations§
impl Freeze for PlatformData
impl RefUnwindSafe for PlatformData
impl Send for PlatformData
impl Sync for PlatformData
impl Unpin for PlatformData
impl UnwindSafe for PlatformData
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