pub struct EditChatInviteLinkBuilder { /* private fields */ }Expand description
Builder for the EditChatInviteLink structure
Implementations§
Source§impl EditChatInviteLinkBuilder
impl EditChatInviteLinkBuilder
Sourcepub fn new(chat_id: ChatId, invite_link: String) -> Self
pub fn new(chat_id: ChatId, invite_link: String) -> Self
Instantiate the builder with the fields chat_id, invite_link, name, expire_date, member_limit, creates_join_request
Sourcepub fn expire_date(self, val: i64) -> Self
pub fn expire_date(self, val: i64) -> Self
Set the field expire_date to the given value
Sourcepub fn member_limit(self, val: i64) -> Self
pub fn member_limit(self, val: i64) -> Self
Set the field member_limit to the given value
Sourcepub fn creates_join_request(self, val: bool) -> Self
pub fn creates_join_request(self, val: bool) -> Self
Set the field creates_join_request to the given value
Trait Implementations§
Source§impl Builder for EditChatInviteLinkBuilder
impl Builder for EditChatInviteLinkBuilder
Source§type Value = EditChatInviteLink
type Value = EditChatInviteLink
Type to be built
Auto Trait Implementations§
impl Freeze for EditChatInviteLinkBuilder
impl RefUnwindSafe for EditChatInviteLinkBuilder
impl Send for EditChatInviteLinkBuilder
impl Sync for EditChatInviteLinkBuilder
impl Unpin for EditChatInviteLinkBuilder
impl UnwindSafe for EditChatInviteLinkBuilder
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