PlayerInfo

Trait PlayerInfo 

Source
pub trait PlayerInfo {
    // Required methods
    fn id(&self) -> Uuid;
    fn nfc_uid(&self) -> NfcUid;
    fn total_bloops(&self) -> usize;
    fn awarded_achievements(&self) -> &HashMap<Uuid, DateTime<Utc>>;
}
Expand description

Provides read-only information about a player.

Required Methods§

Source

fn id(&self) -> Uuid

Returns the unique player ID.

Source

fn nfc_uid(&self) -> NfcUid

Returns the player’s NFC UID.

Source

fn total_bloops(&self) -> usize

Returns the total number of bloops the player has collected.

Source

fn awarded_achievements(&self) -> &HashMap<Uuid, DateTime<Utc>>

Returns a reference to the map of awarded achievements and their timestamps.

Implementors§