Struct telegram_bot_fork::types::requests::KickChatMember
source · pub struct KickChatMember { /* private fields */ }
Expand description
Use this method to kick a user from a group or a supergroup. In the case of supergroups, the user will not be able to return to the group on their own using invite links, etc., unless unbanned first. The bot must be an administrator in the group for this to work.
Implementations§
source§impl KickChatMember
impl KickChatMember
pub fn new<C, U>(chat: C, user: U) -> KickChatMemberwhere
C: ToChatRef,
U: ToUserId,
Trait Implementations§
source§impl Clone for KickChatMember
impl Clone for KickChatMember
source§fn clone(&self) -> KickChatMember
fn clone(&self) -> KickChatMember
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 KickChatMember
impl Debug for KickChatMember
source§impl PartialEq<KickChatMember> for KickChatMember
impl PartialEq<KickChatMember> for KickChatMember
source§fn eq(&self, other: &KickChatMember) -> bool
fn eq(&self, other: &KickChatMember) -> bool
source§impl PartialOrd<KickChatMember> for KickChatMember
impl PartialOrd<KickChatMember> for KickChatMember
source§fn partial_cmp(&self, other: &KickChatMember) -> Option<Ordering>
fn partial_cmp(&self, other: &KickChatMember) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Request for KickChatMember
impl Request for KickChatMember
type Type = JsonRequestType<KickChatMember>
type Response = JsonTrueToUnitResponse
fn serialize(&self) -> Result<HttpRequest, Error>
fn detach(&self) -> DetachedRequest<Self::Response>
source§impl Serialize for KickChatMember
impl Serialize for KickChatMember
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more