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§
fn restrict<O>(&self, other: O) -> RestrictChatMemberwhere
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.