pub struct RestrictChatMember { /* private fields */ }Expand description
Builder for the restrictChatMember method.
Implementations§
Source§impl RestrictChatMember
impl RestrictChatMember
Sourcepub fn until_date(self, ts: i64) -> Self
pub fn until_date(self, ts: i64) -> Self
Restricts the user until this Unix timestamp. Omit or set to 0 for a permanent restriction.
Sourcepub fn use_independent_chat_permissions(self, v: bool) -> Self
pub fn use_independent_chat_permissions(self, v: bool) -> Self
Sets whether to apply permissions independently (supergroups only).
Trait Implementations§
Source§impl IntoFuture for RestrictChatMember
impl IntoFuture for RestrictChatMember
Source§type IntoFuture = Pin<Box<dyn Future<Output = <RestrictChatMember as IntoFuture>::Output> + Send>>
type IntoFuture = Pin<Box<dyn Future<Output = <RestrictChatMember 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 Freeze for RestrictChatMember
impl !RefUnwindSafe for RestrictChatMember
impl Send for RestrictChatMember
impl Sync for RestrictChatMember
impl Unpin for RestrictChatMember
impl UnsafeUnpin for RestrictChatMember
impl !UnwindSafe for RestrictChatMember
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