User

Struct User 

Source
pub struct User {
Show 58 fields pub id: i64, pub steam_id: String, pub steam_id_v3: String, pub steam_name: String, pub avatar: String, pub profile_url: String, pub registration_timestamp: String, pub registration_ip: String, pub last_login: String, pub total_profit: i64, pub total_bet: i64, pub betback_total: i64, pub bet_threshold: i64, pub total_trades: i64, pub total_deposit: i64, pub total_withdraw: i64, pub withdraw_limit: i64, pub csgo_playtime: i64, pub last_csgo_playtime_cache: String, pub trade_url: Option<String>, pub trade_offer_token: Option<String>, pub ref_id: i64, pub ref_earnings: i64, pub total_ref_earnings: i64, pub referral_code: Option<String>, pub muted_until: i64, pub mute_reason: Value, pub utm_campaign: Value, pub country: String, pub steam_level: Value, pub last_steam_level_cache: String, pub whitelisted: i64, pub total_tips_received: i64, pub total_tips_sent: i64, pub withdrawal_fee_owed: String, pub flags: i64, pub tos_version: String, pub balance: i64, pub ban: Value, pub balances: Vec<Value>, pub level: i64, pub xp: i64, pub user_hash: String, pub hashed_server_seed: String, pub roles: Vec<Value>, pub eligible_for_free_case: bool, pub extra_security_type: String, pub p2p_telegram_notifications_allowed: bool, pub p2p_telegram_notifications_enabled: bool, pub p2p_request_failed_trade_feedback: bool, pub p2p_filter_delivery_time_enabled: bool, pub unread_notifications: Vec<Value>, pub last_session: LastSession, pub steam_inventory_url: String, pub steam_api_key: Option<String>, pub has_crypto_deposit: bool, pub linked_accounts: Vec<Value>, pub api_token: String,
}

Fields§

§id: i64§steam_id: String§steam_id_v3: String§steam_name: String§avatar: String§profile_url: String§registration_timestamp: String§registration_ip: String§last_login: String§total_profit: i64§total_bet: i64§betback_total: i64§bet_threshold: i64§total_trades: i64§total_deposit: i64§total_withdraw: i64§withdraw_limit: i64§csgo_playtime: i64§last_csgo_playtime_cache: String§trade_url: Option<String>§trade_offer_token: Option<String>§ref_id: i64§ref_earnings: i64§total_ref_earnings: i64§referral_code: Option<String>§muted_until: i64§mute_reason: Value§utm_campaign: Value§country: String§steam_level: Value§last_steam_level_cache: String§whitelisted: i64§total_tips_received: i64§total_tips_sent: i64§withdrawal_fee_owed: String§flags: i64§tos_version: String§balance: i64§ban: Value§balances: Vec<Value>§level: i64§xp: i64§user_hash: String§hashed_server_seed: String§roles: Vec<Value>§eligible_for_free_case: bool§extra_security_type: String§p2p_telegram_notifications_allowed: bool§p2p_telegram_notifications_enabled: bool§p2p_request_failed_trade_feedback: bool§p2p_filter_delivery_time_enabled: bool§unread_notifications: Vec<Value>§last_session: LastSession§steam_inventory_url: String§steam_api_key: Option<String>§has_crypto_deposit: bool§linked_accounts: Vec<Value>§api_token: String

Trait Implementations§

Source§

impl Clone for User

Source§

fn clone(&self) -> User

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for User

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for User

Source§

fn default() -> User

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for User

Source§

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 PartialEq for User

Source§

fn eq(&self, other: &User) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for User

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for User

Auto Trait Implementations§

§

impl Freeze for User

§

impl RefUnwindSafe for User

§

impl Send for User

§

impl Sync for User

§

impl Unpin for User

§

impl UnwindSafe for User

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

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
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,