Struct telegram_bot2::models::ChatInviteLinkBuilder
source · 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
§type Value = ChatInviteLink
type Value = ChatInviteLink
Type to be built