Struct frankenstein::api_params::PromoteChatMemberParams
source · pub struct PromoteChatMemberParams {Show 17 fields
pub chat_id: ChatId,
pub user_id: u64,
pub is_anonymous: Option<bool>,
pub can_manage_chat: Option<bool>,
pub can_post_messages: Option<bool>,
pub can_edit_messages: Option<bool>,
pub can_delete_messages: Option<bool>,
pub can_post_stories: Option<bool>,
pub can_edit_stories: Option<bool>,
pub can_delete_stories: Option<bool>,
pub can_manage_video_chats: Option<bool>,
pub can_restrict_members: Option<bool>,
pub can_promote_members: Option<bool>,
pub can_change_info: Option<bool>,
pub can_invite_users: Option<bool>,
pub can_pin_messages: Option<bool>,
pub can_manage_topics: Option<bool>,
}
Fields§
§chat_id: ChatId
§user_id: u64
§is_anonymous: Option<bool>
§can_manage_chat: Option<bool>
§can_post_messages: Option<bool>
§can_edit_messages: Option<bool>
§can_delete_messages: Option<bool>
§can_post_stories: Option<bool>
§can_edit_stories: Option<bool>
§can_delete_stories: Option<bool>
§can_manage_video_chats: Option<bool>
§can_restrict_members: Option<bool>
§can_promote_members: Option<bool>
§can_change_info: Option<bool>
§can_invite_users: Option<bool>
§can_pin_messages: Option<bool>
§can_manage_topics: Option<bool>
Implementations§
source§impl PromoteChatMemberParams
impl PromoteChatMemberParams
sourcepub fn builder(
) -> PromoteChatMemberParamsBuilder<((), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), ())>
pub fn builder( ) -> PromoteChatMemberParamsBuilder<((), (), (), (), (), (), (), (), (), (), (), (), (), (), (), (), ())>
Create a builder for building PromoteChatMemberParams
.
On the builder, call .chat_id(...)
, .user_id(...)
, .is_anonymous(...)
(optional), .can_manage_chat(...)
(optional), .can_post_messages(...)
(optional), .can_edit_messages(...)
(optional), .can_delete_messages(...)
(optional), .can_post_stories(...)
(optional), .can_edit_stories(...)
(optional), .can_delete_stories(...)
(optional), .can_manage_video_chats(...)
(optional), .can_restrict_members(...)
(optional), .can_promote_members(...)
(optional), .can_change_info(...)
(optional), .can_invite_users(...)
(optional), .can_pin_messages(...)
(optional), .can_manage_topics(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of PromoteChatMemberParams
.
Trait Implementations§
source§impl Clone for PromoteChatMemberParams
impl Clone for PromoteChatMemberParams
source§fn clone(&self) -> PromoteChatMemberParams
fn clone(&self) -> PromoteChatMemberParams
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 PromoteChatMemberParams
impl Debug for PromoteChatMemberParams
source§impl<'de> Deserialize<'de> for PromoteChatMemberParams
impl<'de> Deserialize<'de> for PromoteChatMemberParams
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 PromoteChatMemberParams
impl PartialEq for PromoteChatMemberParams
source§fn eq(&self, other: &PromoteChatMemberParams) -> bool
fn eq(&self, other: &PromoteChatMemberParams) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for PromoteChatMemberParams
impl Serialize for PromoteChatMemberParams
impl Eq for PromoteChatMemberParams
impl StructuralPartialEq for PromoteChatMemberParams
Auto Trait Implementations§
impl Freeze for PromoteChatMemberParams
impl RefUnwindSafe for PromoteChatMemberParams
impl Send for PromoteChatMemberParams
impl Sync for PromoteChatMemberParams
impl Unpin for PromoteChatMemberParams
impl UnwindSafe for PromoteChatMemberParams
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