[][src]Struct coolq_sdk_rust::targets::user::User

pub struct User {
    pub user_id: i64,
    pub nickname: String,
    pub sex: UserSex,
    pub age: i32,
    pub authority: Authority,
}

Fields

user_id: i64nickname: Stringsex: UserSexage: i32authority: Authority

Methods

impl User[src]

pub fn add_master(user_id: i64)[src]

pub fn add_super_admin(user_id: i64)[src]

pub fn get_masters() -> Vec<i64>[src]

pub fn get_super_admins() -> Vec<i64>[src]

pub fn update(&mut self) -> Result<User>[src]

Trait Implementations

impl Clone for User[src]

impl Debug for User[src]

impl Default for User[src]

impl SendMessage for User[src]

impl TryFrom<Convert<*const i8>> for User[src]

type Error = IoError

The type returned in the event of a conversion error.

Auto Trait Implementations

impl RefUnwindSafe for User

impl Send for User

impl Sync for User

impl Unpin for User

impl UnwindSafe for User

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.