pub struct PlatformDataUpdates {
pub custom: CustomDataUpdates,
pub current_xp: u64,
pub current_achievements: ShortVec<u16>,
pub add_xp: u64,
pub add_achievements: ShortVec<u16>,
}
Fields§
§custom: CustomDataUpdates
§current_xp: u64
§current_achievements: ShortVec<u16>
§add_xp: u64
§add_achievements: ShortVec<u16>
Trait Implementations§
Source§impl BorshDeserialize for PlatformDataUpdates
impl BorshDeserialize for PlatformDataUpdates
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 PlatformDataUpdates
impl BorshSerialize for PlatformDataUpdates
Source§impl Clone for PlatformDataUpdates
impl Clone for PlatformDataUpdates
Source§fn clone(&self) -> PlatformDataUpdates
fn clone(&self) -> PlatformDataUpdates
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 PartialEq for PlatformDataUpdates
impl PartialEq for PlatformDataUpdates
impl StructuralPartialEq for PlatformDataUpdates
Auto Trait Implementations§
impl Freeze for PlatformDataUpdates
impl RefUnwindSafe for PlatformDataUpdates
impl Send for PlatformDataUpdates
impl Sync for PlatformDataUpdates
impl Unpin for PlatformDataUpdates
impl UnwindSafe for PlatformDataUpdates
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