[−][src]Struct coolq_sdk_rust::targets::group::Group
Fields
group_id: i64
group_name: String
member_count: i32
max_member_count: i32
Methods
impl Group
[src]
pub fn new(group_id: i64) -> Group
[src]
pub fn get_members(&self) -> Result<Vec<GroupMember>>
[src]
部分参数如 area、title 等等无法获取到(为空)。要获取全部参数请使用 get_member。
pub fn get_member(&self, user_id: i64) -> Result<GroupMember>
[src]
pub fn set_can_anonymous(&self, enable: bool) -> Result<Convert<i32>>
[src]
pub fn set_whole_ban(&self, enable: bool) -> Result<Convert<i32>>
[src]
pub fn set_ban(&self, user_id: i64, time: i64) -> Result<Convert<i32>>
[src]
pub fn set_kick(
&self,
user_id: i64,
refuse_rejoin: bool
) -> Result<Convert<i32>>
[src]
&self,
user_id: i64,
refuse_rejoin: bool
) -> Result<Convert<i32>>
pub fn update(&mut self) -> Result<Group>
[src]
Trait Implementations
impl Clone for Group
[src]
impl Debug for Group
[src]
impl Default for Group
[src]
impl SendMessage for Group
[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 Group
[src]
Auto Trait Implementations
impl RefUnwindSafe for Group
impl Send for Group
impl Sync for Group
impl Unpin for Group
impl UnwindSafe for Group
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>,