[][src]Struct coolq_sdk_rust::targets::group::Group

pub struct Group {
    pub group_id: i64,
    pub group_name: String,
    pub member_count: i32,
    pub max_member_count: i32,
}

Fields

group_id: i64group_name: Stringmember_count: i32max_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]

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]

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

type Error = IoError

The type returned in the event of a conversion error.

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]

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.