Struct frankenstein::objects::ChatMemberRestricted
source · pub struct ChatMemberRestricted {Show 17 fields
pub user: User,
pub is_member: bool,
pub can_send_messages: bool,
pub can_send_audios: bool,
pub can_send_documents: bool,
pub can_send_photos: bool,
pub can_send_videos: bool,
pub can_send_video_notes: bool,
pub can_send_voice_notes: bool,
pub can_send_polls: bool,
pub can_send_other_messages: bool,
pub can_add_web_page_previews: bool,
pub can_change_info: bool,
pub can_invite_users: bool,
pub can_pin_messages: bool,
pub can_manage_topics: bool,
pub until_date: u64,
}
Fields§
§user: User
§is_member: bool
§can_send_messages: bool
§can_send_audios: bool
§can_send_documents: bool
§can_send_photos: bool
§can_send_videos: bool
§can_send_video_notes: bool
§can_send_voice_notes: bool
§can_send_polls: bool
§can_send_other_messages: bool
§can_add_web_page_previews: bool
§can_change_info: bool
§can_invite_users: bool
§can_pin_messages: bool
§can_manage_topics: bool
§until_date: u64
Implementations§
source§impl ChatMemberRestricted
impl ChatMemberRestricted
sourcepub fn builder(
) -> ChatMemberRestrictedBuilder<((), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), ())>
pub fn builder( ) -> ChatMemberRestrictedBuilder<((), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), ())>
Create a builder for building ChatMemberRestricted
.
On the builder, call .user(...)
, .is_member(...)
, .can_send_messages(...)
, .can_send_audios(...)
, .can_send_documents(...)
, .can_send_photos(...)
, .can_send_videos(...)
, .can_send_video_notes(...)
, .can_send_voice_notes(...)
, .can_send_polls(...)
, .can_send_other_messages(...)
, .can_add_web_page_previews(...)
, .can_change_info(...)
, .can_invite_users(...)
, .can_pin_messages(...)
, .can_manage_topics(...)
, .until_date(...)
to set the values of the fields.
Finally, call .build()
to create the instance of ChatMemberRestricted
.
Trait Implementations§
source§impl Clone for ChatMemberRestricted
impl Clone for ChatMemberRestricted
source§fn clone(&self) -> ChatMemberRestricted
fn clone(&self) -> ChatMemberRestricted
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ChatMemberRestricted
impl Debug for ChatMemberRestricted
source§impl<'de> Deserialize<'de> for ChatMemberRestricted
impl<'de> Deserialize<'de> for ChatMemberRestricted
source§fn 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
source§impl PartialEq for ChatMemberRestricted
impl PartialEq for ChatMemberRestricted
source§fn eq(&self, other: &ChatMemberRestricted) -> bool
fn eq(&self, other: &ChatMemberRestricted) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ChatMemberRestricted
impl Serialize for ChatMemberRestricted
impl Eq for ChatMemberRestricted
impl StructuralPartialEq for ChatMemberRestricted
Auto Trait Implementations§
impl Freeze for ChatMemberRestricted
impl RefUnwindSafe for ChatMemberRestricted
impl Send for ChatMemberRestricted
impl Sync for ChatMemberRestricted
impl Unpin for ChatMemberRestricted
impl UnwindSafe for ChatMemberRestricted
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