pub trait RestrictChatMemberSetters: HasPayload<Payload = RestrictChatMember> + Sized {
// Provided methods
fn chat_id<T>(self, value: T) -> Self
where T: Into<Recipient> { ... }
fn user_id(self, value: UserId) -> Self { ... }
fn permissions(self, value: ChatPermissions) -> Self { ... }
fn use_independent_chat_permissions(self, value: bool) -> Self { ... }
fn until_date<T>(self, value: T) -> Self
where T: Into<DateTime<Utc>> { ... }
}
Expand description
Setters for fields of RestrictChatMember
Provided Methods§
sourcefn permissions(self, value: ChatPermissions) -> Self
fn permissions(self, value: ChatPermissions) -> Self
Setter for permissions
field.
sourcefn use_independent_chat_permissions(self, value: bool) -> Self
fn use_independent_chat_permissions(self, value: bool) -> Self
Setter for use_independent_chat_permissions
field.
sourcefn until_date<T>(self, value: T) -> Self
fn until_date<T>(self, value: T) -> Self
Setter for until_date
field.
Object Safety§
This trait is not object safe.