Struct arc_util::tracking::CachedPlayer
source · pub struct CachedPlayer {
pub account: String,
pub character: String,
pub profession: Profession,
pub elite: Specialization,
}
Expand description
An player entry in the tracker cache.
Fields§
§account: String
Account name of cached player.
character: String
Character name of cached player.
profession: Profession
Profession of cached player.
elite: Specialization
Elite specialization of cached player.
Implementations§
source§impl CachedPlayer
impl CachedPlayer
sourcepub fn new(
account: impl Into<String>,
character: impl Into<String>,
profession: Profession,
specialization: Specialization
) -> Self
pub fn new( account: impl Into<String>, character: impl Into<String>, profession: Profession, specialization: Specialization ) -> Self
Creates a new player cache entry.
Trait Implementations§
source§impl Clone for CachedPlayer
impl Clone for CachedPlayer
source§fn clone(&self) -> CachedPlayer
fn clone(&self) -> CachedPlayer
Returns a copy 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 CachedPlayer
impl Debug for CachedPlayer
source§impl<'de> Deserialize<'de> for CachedPlayer
impl<'de> Deserialize<'de> for CachedPlayer
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<Player> for CachedPlayer
impl From<Player> for CachedPlayer
Auto Trait Implementations§
impl Freeze for CachedPlayer
impl RefUnwindSafe for CachedPlayer
impl Send for CachedPlayer
impl Sync for CachedPlayer
impl Unpin for CachedPlayer
impl UnwindSafe for CachedPlayer
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