pub struct UnbanChatMember { /* private fields */ }Expand description
Use this method to unban a previously kicked user in a supergroup or channel. The user will not return to the group or channel automatically, but will be able to join via link, etc. The bot must be an administrator in the group for this to work.
Implementations§
Source§impl UnbanChatMember
impl UnbanChatMember
pub fn new<C, U>(chat: C, user: U) -> UnbanChatMember
Trait Implementations§
Source§impl Clone for UnbanChatMember
impl Clone for UnbanChatMember
Source§fn clone(&self) -> UnbanChatMember
fn clone(&self) -> UnbanChatMember
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 UnbanChatMember
impl Debug for UnbanChatMember
Source§impl PartialEq for UnbanChatMember
impl PartialEq for UnbanChatMember
Source§fn eq(&self, other: &UnbanChatMember) -> bool
fn eq(&self, other: &UnbanChatMember) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for UnbanChatMember
impl PartialOrd for UnbanChatMember
Source§impl Request for UnbanChatMember
impl Request for UnbanChatMember
type Type = JsonRequestType<UnbanChatMember>
type Response = JsonTrueToUnitResponse
fn serialize(&self) -> Result<HttpRequest, Error>
fn detach(&self) -> DetachedRequest<Self::Response>
Source§impl Serialize for UnbanChatMember
impl Serialize for UnbanChatMember
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
impl StructuralPartialEq for UnbanChatMember
Auto Trait Implementations§
impl Freeze for UnbanChatMember
impl RefUnwindSafe for UnbanChatMember
impl Send for UnbanChatMember
impl Sync for UnbanChatMember
impl Unpin for UnbanChatMember
impl UnsafeUnpin for UnbanChatMember
impl UnwindSafe for UnbanChatMember
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