pub struct CreateChatInviteLink { /* private fields */ }Expand description
Builder for the createChatInviteLink method.
Implementations§
Source§impl CreateChatInviteLink
impl CreateChatInviteLink
Sourcepub fn name(self, n: impl Into<String>) -> Self
pub fn name(self, n: impl Into<String>) -> Self
Sets the name of the invite link (up to 32 characters).
Sourcepub fn expire_date(self, ts: i64) -> Self
pub fn expire_date(self, ts: i64) -> Self
Sets the Unix timestamp when the invite link expires.
Sourcepub fn member_limit(self, n: u32) -> Self
pub fn member_limit(self, n: u32) -> Self
Limits how many users can join via this link.
Sourcepub fn creates_join_request(self, v: bool) -> Self
pub fn creates_join_request(self, v: bool) -> Self
Makes the link require admin approval for each join request.
Trait Implementations§
Source§impl IntoFuture for CreateChatInviteLink
impl IntoFuture for CreateChatInviteLink
Source§type Output = Result<ChatInviteLink, Error>
type Output = Result<ChatInviteLink, Error>
The output that the future will produce on completion.
Source§type IntoFuture = Pin<Box<dyn Future<Output = <CreateChatInviteLink as IntoFuture>::Output> + Send>>
type IntoFuture = Pin<Box<dyn Future<Output = <CreateChatInviteLink as IntoFuture>::Output> + Send>>
Which kind of future are we turning this into?
Source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for CreateChatInviteLink
impl !UnwindSafe for CreateChatInviteLink
impl Freeze for CreateChatInviteLink
impl Send for CreateChatInviteLink
impl Sync for CreateChatInviteLink
impl Unpin for CreateChatInviteLink
impl UnsafeUnpin for CreateChatInviteLink
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