[−][src]Struct coolq_sdk_rust::targets::user::User
Fields
user_id: i64
nickname: String
sex: UserSex
age: i32
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]
fn send(&self, msg: impl ToString) -> Result<Convert<i32>>
[src]
fn send_message(&self, msg: impl ToString) -> Result<i32>
[src]
fn send_rps(&self) -> Result<i32>
[src]
fn send_dice(&self) -> Result<i32>
[src]
fn send_shake(&self) -> Result<i32>
[src]
fn send_anonymous(&self, ignore: bool, msg: impl ToString) -> Result<i32>
[src]
fn send_location(
&self,
latitude: f32,
longitude: f32,
title: &str,
content: &str
) -> Result<i32>
[src]
&self,
latitude: f32,
longitude: f32,
title: &str,
content: &str
) -> Result<i32>
fn send_music(&self, _type: &str, id: i32, style: i32) -> Result<i32>
[src]
fn send_music_custom(
&self,
url: &str,
audio: &str,
title: &str,
content: &str,
image: &str
) -> Result<i32>
[src]
&self,
url: &str,
audio: &str,
title: &str,
content: &str,
image: &str
) -> Result<i32>
fn send_share(
&self,
url: &str,
title: &str,
content: &str,
image: &str
) -> Result<i32>
[src]
&self,
url: &str,
title: &str,
content: &str,
image: &str
) -> Result<i32>
fn at(&self, user_id: i64, msg: impl ToString) -> Result<i32>
[src]
impl TryFrom<Convert<*const i8>> for User
[src]
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,