pub struct RestrictChatMemberBuilder { /* private fields */ }Expand description
Builder for the RestrictChatMember structure
Implementations§
Source§impl RestrictChatMemberBuilder
impl RestrictChatMemberBuilder
Sourcepub fn new(chat_id: ChatId, user_id: i64, permissions: ChatPermissions) -> Self
pub fn new(chat_id: ChatId, user_id: i64, permissions: ChatPermissions) -> Self
Instantiate the builder with the fields chat_id, user_id, permissions, until_date
Sourcepub fn until_date(self, val: i64) -> Self
pub fn until_date(self, val: i64) -> Self
Set the field until_date to the given value
Trait Implementations§
Source§impl Builder for RestrictChatMemberBuilder
impl Builder for RestrictChatMemberBuilder
Source§type Value = RestrictChatMember
type Value = RestrictChatMember
Type to be built
Auto Trait Implementations§
impl Freeze for RestrictChatMemberBuilder
impl RefUnwindSafe for RestrictChatMemberBuilder
impl Send for RestrictChatMemberBuilder
impl Sync for RestrictChatMemberBuilder
impl Unpin for RestrictChatMemberBuilder
impl UnwindSafe for RestrictChatMemberBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more