pub struct CreateRequest {
pub name: String,
pub owner: String,
pub useridlist: Vec<String>,
pub show_history_type: u8,
pub searchable: u8,
pub validation_type: u8,
pub mention_all_authority: u8,
pub management_type: u8,
pub chat_banned_type: u8,
}
Expand description
group create request
refer to official doc see more detail for each field
Fields§
§name: String
§owner: String
§useridlist: Vec<String>
§show_history_type: u8
Can new members view 100 historical messages
- 1: can
- 0: can not (default)
searchable: u8
Can the group be searched
- 0: can not (default)
- 1: can
validation_type: u8
Do user need verification to join the group
- 0: need not (default)
- 1: need
@all usage scope
- 0: all people can use @all (default)
- 1: only group owner can use @all
management_type: u8
Group management type
- 0: everyone can manage (default)
- 1: only group owner can manage
chat_banned_type: u8
Whether to enable chat banned in group
- 0: no (default)
- 1: yes
Trait Implementations§
Source§impl Default for CreateRequest
impl Default for CreateRequest
Source§fn default() -> CreateRequest
fn default() -> CreateRequest
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CreateRequest
impl RefUnwindSafe for CreateRequest
impl Send for CreateRequest
impl Sync for CreateRequest
impl Unpin for CreateRequest
impl UnwindSafe for CreateRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more