pub struct SteamID(/* private fields */);
Implementations§
Source§impl SteamID
impl SteamID
pub fn account_id(&self) -> u32
pub fn set_account_id(&mut self, account_id: u32)
pub fn instance(&self) -> Instance
pub fn set_instance(&mut self, instance: Instance)
pub fn account_type(&self) -> AccountType
pub fn set_account_type(&mut self, account_type: AccountType)
pub fn universe(&self) -> Universe
pub fn set_universe(&mut self, universe: Universe)
pub fn new( account_id: u32, instance: Instance, account_type: AccountType, universe: Universe, ) -> SteamID
pub fn steam2(&self) -> String
pub fn from_steam2(steam2: &str) -> Result<SteamID, SteamIDError>
pub fn steam3(&self) -> String
pub fn from_steam3(steam3: &str) -> Result<SteamID, SteamIDError>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SteamID
impl<'de> Deserialize<'de> for SteamID
Source§fn deserialize<D>(
deserializer: D,
) -> Result<SteamID, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<SteamID, <D as Deserializer<'de>>::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 Copy for SteamID
impl Eq for SteamID
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.