pub struct LeaderEntry {
pub address: Pubkey,
pub volume: u128,
}Expand description
A single leaderboard record.
Fields§
§address: Pubkey§volume: u128Trait Implementations§
Source§impl BorshDeserialize for LeaderEntry
impl BorshDeserialize for LeaderEntry
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 LeaderEntry
impl BorshSerialize for LeaderEntry
Source§impl Clone for LeaderEntry
impl Clone for LeaderEntry
Source§fn clone(&self) -> LeaderEntry
fn clone(&self) -> LeaderEntry
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 Debug for LeaderEntry
impl Debug for LeaderEntry
Source§impl Default for LeaderEntry
impl Default for LeaderEntry
Source§fn default() -> LeaderEntry
fn default() -> LeaderEntry
Returns the “default value” for a type. Read more
impl Copy for LeaderEntry
Auto Trait Implementations§
impl Freeze for LeaderEntry
impl RefUnwindSafe for LeaderEntry
impl Send for LeaderEntry
impl Sync for LeaderEntry
impl Unpin for LeaderEntry
impl UnwindSafe for LeaderEntry
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