Trait CanRestrictChatMemberForUser

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

Restrict a user from a group or a supergroup.

Required Methods§

Source

fn restrict_from<O>(&self, other: O) -> RestrictChatMember
where O: ToChatRef,

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§