pub struct CreateChatInviteLinkBuilder { /* private fields */ }Expand description
Builder for the CreateChatInviteLink structure
Implementations§
Source§impl CreateChatInviteLinkBuilder
impl CreateChatInviteLinkBuilder
Sourcepub fn new(chat_id: ChatId) -> Self
pub fn new(chat_id: ChatId) -> Self
Instantiate the builder with the fields chat_id, 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 CreateChatInviteLinkBuilder
impl Builder for CreateChatInviteLinkBuilder
Source§type Value = CreateChatInviteLink
type Value = CreateChatInviteLink
Type to be built
Auto Trait Implementations§
impl Freeze for CreateChatInviteLinkBuilder
impl RefUnwindSafe for CreateChatInviteLinkBuilder
impl Send for CreateChatInviteLinkBuilder
impl Sync for CreateChatInviteLinkBuilder
impl Unpin for CreateChatInviteLinkBuilder
impl UnwindSafe for CreateChatInviteLinkBuilder
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