pub struct EditChatInviteLink { /* private fields */ }Expand description
Builder for the editChatInviteLink method.
Implementations§
Source§impl EditChatInviteLink
impl EditChatInviteLink
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 (0–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 (1–99999).
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 EditChatInviteLink
impl IntoFuture for EditChatInviteLink
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 = <EditChatInviteLink as IntoFuture>::Output> + Send>>
type IntoFuture = Pin<Box<dyn Future<Output = <EditChatInviteLink 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 Freeze for EditChatInviteLink
impl !RefUnwindSafe for EditChatInviteLink
impl Send for EditChatInviteLink
impl Sync for EditChatInviteLink
impl Unpin for EditChatInviteLink
impl UnsafeUnpin for EditChatInviteLink
impl !UnwindSafe for EditChatInviteLink
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