Struct frankenstein::objects::ChatMemberAdministrator
source · [−]pub struct ChatMemberAdministrator {Show 14 fields
pub user: User,
pub can_be_edited: bool,
pub custom_title: Option<String>,
pub is_anonymous: bool,
pub can_manage_chat: bool,
pub can_post_messages: Option<bool>,
pub can_edit_messages: Option<bool>,
pub can_delete_messages: bool,
pub can_manage_video_chats: bool,
pub can_restrict_members: bool,
pub can_promote_members: bool,
pub can_change_info: bool,
pub can_invite_users: bool,
pub can_pin_messages: Option<bool>,
}
Fields
user: User
can_be_edited: bool
custom_title: Option<String>
is_anonymous: bool
can_manage_chat: bool
can_post_messages: Option<bool>
can_edit_messages: Option<bool>
can_delete_messages: bool
can_manage_video_chats: bool
can_restrict_members: bool
can_promote_members: bool
can_change_info: bool
can_invite_users: bool
can_pin_messages: Option<bool>
Implementations
sourceimpl ChatMemberAdministrator
impl ChatMemberAdministrator
sourcepub fn builder(
) -> ChatMemberAdministratorBuilder<((), (), (), (), (), (), (), (), (), (), (), (), (), ())>
pub fn builder(
) -> ChatMemberAdministratorBuilder<((), (), (), (), (), (), (), (), (), (), (), (), (), ())>
Create a builder for building ChatMemberAdministrator
.
On the builder, call .user(...)
, .can_be_edited(...)
, .custom_title(...)
(optional), .is_anonymous(...)
, .can_manage_chat(...)
, .can_post_messages(...)
(optional), .can_edit_messages(...)
(optional), .can_delete_messages(...)
, .can_manage_video_chats(...)
, .can_restrict_members(...)
, .can_promote_members(...)
, .can_change_info(...)
, .can_invite_users(...)
, .can_pin_messages(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of ChatMemberAdministrator
.
Trait Implementations
sourceimpl Clone for ChatMemberAdministrator
impl Clone for ChatMemberAdministrator
sourcefn clone(&self) -> ChatMemberAdministrator
fn clone(&self) -> ChatMemberAdministrator
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ChatMemberAdministrator
impl Debug for ChatMemberAdministrator
sourceimpl<'de> Deserialize<'de> for ChatMemberAdministrator
impl<'de> Deserialize<'de> for ChatMemberAdministrator
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<ChatMemberAdministrator> for ChatMemberAdministrator
impl PartialEq<ChatMemberAdministrator> for ChatMemberAdministrator
sourcefn eq(&self, other: &ChatMemberAdministrator) -> bool
fn eq(&self, other: &ChatMemberAdministrator) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ChatMemberAdministrator) -> bool
fn ne(&self, other: &ChatMemberAdministrator) -> bool
This method tests for !=
.
sourceimpl Serialize for ChatMemberAdministrator
impl Serialize for ChatMemberAdministrator
impl StructuralPartialEq for ChatMemberAdministrator
Auto Trait Implementations
impl RefUnwindSafe for ChatMemberAdministrator
impl Send for ChatMemberAdministrator
impl Sync for ChatMemberAdministrator
impl Unpin for ChatMemberAdministrator
impl UnwindSafe for ChatMemberAdministrator
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more