pub struct Player {
pub addr: String,
pub position: usize,
pub status: NodeStatus,
pub balance: u64,
}Fields§
§addr: String§position: usize§status: NodeStatus§balance: u64Implementations§
Trait Implementations§
Source§impl BorshDeserialize for Player
impl BorshDeserialize for Player
Source§impl BorshSerialize for Playerwhere
String: BorshSerialize,
usize: BorshSerialize,
NodeStatus: BorshSerialize,
u64: BorshSerialize,
impl BorshSerialize for Playerwhere
String: BorshSerialize,
usize: BorshSerialize,
NodeStatus: BorshSerialize,
u64: BorshSerialize,
impl Eq for Player
Source§impl From<PlayerJoin> for Player
impl From<PlayerJoin> for Player
Source§fn from(new_player: PlayerJoin) -> Self
fn from(new_player: PlayerJoin) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for Player
Auto Trait Implementations§
impl Freeze for Player
impl RefUnwindSafe for Player
impl Send for Player
impl Sync for Player
impl Unpin for Player
impl UnsafeUnpin for Player
impl UnwindSafe for Player
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