pub struct SteamID(/* private fields */);Implementations§
Source§impl SteamID
impl SteamID
pub fn new( account_id: u32, instance: Instance, account_type: AccountType, universe: Universe, ) -> Self
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 set_instance_type(&mut self, instance_type: InstanceType)
pub fn set_instance_flags(&mut self, instance_flags: InstanceFlags)
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 steam64(&self) -> u64
pub fn from_steam64(value: u64) -> Result<Self, SteamIDParseError>
pub fn steam2(&self) -> String
pub fn from_steam2(steam2: &str) -> Result<Self, SteamIDParseError>
pub fn steam3(&self) -> String
pub fn from_steam3(steam3: &str) -> Result<Self, SteamIDParseError>
Trait Implementations§
impl Copy for SteamID
impl Eq for SteamID
Source§impl FromStr for SteamID
impl FromStr for SteamID
Source§fn from_str(s: &str) -> Result<Self, Self::Err>
fn from_str(s: &str) -> Result<Self, Self::Err>
Tries to parse the given string as all three types of SteamID, and returns an error if
all three attempts fail. You should use SteamID::from_steam3 or SteamID::from_steam2
if you know the format of the SteamID string you are trying to parse.
Source§type Err = SteamIDParseError
type Err = SteamIDParseError
The associated error which can be returned from parsing.
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 UnsafeUnpin 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