Struct CreateRequest

Source
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
§mention_all_authority: u8

@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

Source§

fn default() -> CreateRequest

Returns the “default value” for a type. Read more
Source§

impl Serialize for CreateRequest

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,

Source§

impl<T> MaybeSendSync for T