pub struct BanChatMember { /* private fields */ }Expand description
Builder for the banChatMember method.
Implementations§
Source§impl BanChatMember
impl BanChatMember
Sourcepub fn until_date(self, ts: i64) -> Self
pub fn until_date(self, ts: i64) -> Self
Bans the user until this Unix timestamp. Omit or set to 0 for a permanent ban.
Sourcepub fn revoke_messages(self, v: bool) -> Self
pub fn revoke_messages(self, v: bool) -> Self
Deletes all messages from this user in the chat on ban.
Trait Implementations§
Source§impl IntoFuture for BanChatMember
impl IntoFuture for BanChatMember
Source§type IntoFuture = Pin<Box<dyn Future<Output = <BanChatMember as IntoFuture>::Output> + Send>>
type IntoFuture = Pin<Box<dyn Future<Output = <BanChatMember as IntoFuture>::Output> + Send>>
Which kind of future are we turning this into?
Source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for BanChatMember
impl !UnwindSafe for BanChatMember
impl Freeze for BanChatMember
impl Send for BanChatMember
impl Sync for BanChatMember
impl Unpin for BanChatMember
impl UnsafeUnpin for BanChatMember
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