Trait KickChatMemberSetters

Source
pub trait KickChatMemberSetters: HasPayload<Payload = KickChatMember> + Sized {
    // Provided methods
    fn chat_id<T>(self, value: T) -> Self
       where T: Into<Recipient> { ... }
    fn user_id(self, value: UserId) -> Self { ... }
    fn until_date<T>(self, value: T) -> Self
       where T: Into<DateTime<Utc>> { ... }
    fn revoke_messages(self, value: bool) -> Self { ... }
}
Expand description

Setters for fields of KickChatMember

Provided Methods§

Source

fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient>,

Setter for chat_id field.

Source

fn user_id(self, value: UserId) -> Self

Setter for user_id field.

Source

fn until_date<T>(self, value: T) -> Self
where T: Into<DateTime<Utc>>,

Setter for until_date field.

Source

fn revoke_messages(self, value: bool) -> Self

Setter for revoke_messages field.

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§

Source§

impl<P> KickChatMemberSetters for P
where P: HasPayload<Payload = KickChatMember>,