pub struct SteamID { /* private fields */ }Expand description
Let X, Y and Z constants be defined by the SteamID: STEAM_X:Y:Z.
Implementations§
Source§impl SteamID
Reference: https://developer.valvesoftware.com/wiki/SteamID
impl SteamID
Reference: https://developer.valvesoftware.com/wiki/SteamID
Sourcepub fn to_steam3(&self) -> u64
pub fn to_steam3(&self) -> u64
Using the formula W=Z*2+Y, a SteamID can be converted to Steam3. Source: https://steamcommunity.com/path/[letter:1:W]
pub fn to_steam64(&self) -> u64
Sourcepub fn from_steam3(
steam3: u32,
universe: Option<EUniverse>,
account_type: Option<EAccountType>,
) -> Self
pub fn from_steam3( steam3: u32, universe: Option<EUniverse>, account_type: Option<EAccountType>, ) -> Self
Creates a new SteamID from the Steam3 format. Defaults to Public universe, and Individual account. You can use the parse utility function.
Sourcepub fn from_steam64(steam64: u64) -> Self
pub fn from_steam64(steam64: u64) -> Self
Creates a new SteamID from the Steam64 format.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SteamID
impl<'de> Deserialize<'de> for SteamID
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 Serialize for SteamID
impl Serialize for SteamID
Source§fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for SteamID
Auto Trait Implementations§
impl Freeze for SteamID
impl RefUnwindSafe for SteamID
impl Send for SteamID
impl Sync for SteamID
impl Unpin for SteamID
impl UnwindSafe for SteamID
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> 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