pub struct PersonaData {
pub steam_id: SteamID,
pub player_name: String,
pub persona_state: EPersonaState,
pub avatar_hash: Option<String>,
pub game_name: Option<String>,
pub game_id: Option<u64>,
pub last_logoff: Option<u32>,
pub last_logon: Option<u32>,
pub last_seen_online: Option<u32>,
pub game_server_ip: Option<u32>,
pub game_server_port: Option<u32>,
pub rich_presence: HashMap<String, String>,
}Expand description
Parsed persona state data.
Fields§
§steam_id: SteamID§player_name: String§persona_state: EPersonaState§avatar_hash: Option<String>§game_name: Option<String>§game_id: Option<u64>§last_logoff: Option<u32>§last_logon: Option<u32>§last_seen_online: Option<u32>§game_server_ip: Option<u32>§game_server_port: Option<u32>§rich_presence: HashMap<String, String>Trait Implementations§
Source§impl Clone for PersonaData
impl Clone for PersonaData
Source§fn clone(&self) -> PersonaData
fn clone(&self) -> PersonaData
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PersonaData
impl RefUnwindSafe for PersonaData
impl Send for PersonaData
impl Sync for PersonaData
impl Unpin for PersonaData
impl UnsafeUnpin for PersonaData
impl UnwindSafe for PersonaData
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more