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