Trait CanRestrictChatMemberForChat

Source
pub trait CanRestrictChatMemberForChat {
    // Required method
    fn restrict<O>(&self, other: O) -> RestrictChatMember
       where O: ToUserId;
}
Expand description

Restrict a user from a group or a supergroup.

Required Methods§

Source

fn restrict<O>(&self, other: O) -> RestrictChatMember
where O: ToUserId,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§