Struct demostf_client::SteamID
source · [−]pub struct SteamID(_);Implementations
sourceimpl 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
sourceimpl<'de> Deserialize<'de> for SteamID
impl<'de> Deserialize<'de> for SteamID
sourcefn 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
sourceimpl Serialize for SteamID
impl Serialize for SteamID
sourcefn 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 StructuralEq for SteamID
impl StructuralPartialEq for SteamID
Auto Trait Implementations
impl RefUnwindSafe for SteamID
impl Send for SteamID
impl Sync for SteamID
impl Unpin for SteamID
impl UnwindSafe for SteamID
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key and return true if they are equal.
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more