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