Struct telexide::api::types::PromoteChatMember [−][src]
pub struct PromoteChatMember {}Show fields
pub chat_id: i64, pub user_id: i64, pub is_anonymous: Option<bool>, pub can_post_messages: Option<bool>, pub can_edit_messages: Option<bool>, pub can_delete_messages: 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_voice_chats: Option<bool>, pub can_manage_chat: Option<bool>,
struct for holding data needed to call
promote_chat_member
Fields
chat_id: i64
Unique identifier for the target chat
user_id: i64
Unique identifier of the target user
is_anonymous: Option<bool>
If the administrator’s presence in the chat is hidden
can_post_messages: Option<bool>
If the administrator can create channel posts, channels only
can_edit_messages: Option<bool>
If the administrator can edit messages of other users and can pin messages, channels only
can_delete_messages: Option<bool>
If the administrator can delete messages of other users
can_restrict_members: Option<bool>
If the administrator can restrict, ban or unban chat members
can_promote_members: Option<bool>
If the administrator can add new administrators with a subset of his own privileges or demote administrators that he has promoted, directly or indirectly (promoted by administrators that were appointed by him)
can_change_info: Option<bool>
If the administrator can change chat title, photo and other settings
can_invite_users: Option<bool>
If the administrator can invite new users to the chat
can_pin_messages: Option<bool>
If the administrator can pin messages, supergroups only
can_manage_voice_chats: Option<bool>
If the administrator can manage voice chats, supergroups only
can_manage_chat: Option<bool>
If the administrator can access the chat event log, chat statistics, message statistics in channels, see channel members, see anonymous administrators in supergroups and ignore slow mode. Implied by any other administrator privilege.
Implementations
Trait Implementations
impl Clone for PromoteChatMember
[src]
impl Clone for PromoteChatMember
[src]fn clone(&self) -> PromoteChatMember
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'de> Deserialize<'de> for PromoteChatMember
[src]
impl<'de> Deserialize<'de> for PromoteChatMember
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl PartialEq<PromoteChatMember> for PromoteChatMember
[src]
impl PartialEq<PromoteChatMember> for PromoteChatMember
[src]fn eq(&self, other: &PromoteChatMember) -> bool
[src]
fn ne(&self, other: &PromoteChatMember) -> bool
[src]
impl Serialize for PromoteChatMember
[src]
impl Serialize for PromoteChatMember
[src]Auto Trait Implementations
impl RefUnwindSafe for PromoteChatMember
impl RefUnwindSafe for PromoteChatMember
impl Send for PromoteChatMember
impl Send for PromoteChatMember
impl Sync for PromoteChatMember
impl Sync for PromoteChatMember
impl Unpin for PromoteChatMember
impl Unpin for PromoteChatMember
impl UnwindSafe for PromoteChatMember
impl UnwindSafe for PromoteChatMember
Blanket Implementations
impl<T> CloneAny for T where
T: Any + Clone,
[src]
impl<T> CloneAny for T where
T: Any + Clone,
[src]pub fn clone_any(&self) -> Box<dyn CloneAny + 'static, Global>
[src]
pub fn clone_any_send(&self) -> Box<dyn CloneAny + 'static + Send, Global> where
T: Send,
[src]
T: Send,
pub fn clone_any_sync(&self) -> Box<dyn CloneAny + 'static + Sync, Global> where
T: Sync,
[src]
T: Sync,
pub fn clone_any_send_sync(
&self
) -> Box<dyn CloneAny + 'static + Send + Sync, Global> where
T: Send + Sync,
[src]
&self
) -> Box<dyn CloneAny + 'static + Send + Sync, Global> where
T: Send + Sync,
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> UnsafeAny for T where
T: Any,
impl<T> UnsafeAny for T where
T: Any,