pub struct ChatMemberRestricted {
    pub user: User,
    pub is_member: bool,
    pub can_change_info: bool,
    pub can_invite_users: bool,
    pub can_pin_messages: Option<bool>,
    pub can_send_messages: bool,
    pub can_send_media_messages: bool,
    pub can_send_polls: bool,
    pub can_send_other_messages: bool,
    pub can_add_web_page_previews: bool,
    pub until_date: u64,
}

Fields

user: Useris_member: boolcan_change_info: boolcan_invite_users: boolcan_pin_messages: Option<bool>can_send_messages: boolcan_send_media_messages: boolcan_send_polls: boolcan_send_other_messages: boolcan_add_web_page_previews: booluntil_date: u64

Implementations

Create a builder for building ChatMemberRestricted. On the builder, call .user(...), .is_member(...), .can_change_info(...), .can_invite_users(...), .can_pin_messages(...)(optional), .can_send_messages(...), .can_send_media_messages(...), .can_send_polls(...), .can_send_other_messages(...), .can_add_web_page_previews(...), .until_date(...) to set the values of the fields. Finally, call .build() to create the instance of ChatMemberRestricted.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.