Struct tbot::methods::EditChatInviteLink[][src]

#[must_use = "methods do nothing unless turned into a future"]
pub struct EditChatInviteLink<'a> { /* fields omitted */ }

Edits a secondary invite link for a chat.

Reflects the editChatInviteLink method.

Implementations

impl<'a> EditChatInviteLink<'a>[src]

pub const fn expire_date(self, date: i64) -> Self[src]

Configures the time when the link expires. Reflects the expire_date parameter.

pub fn member_limit(self, limit: u32) -> Self[src]

Configures how many users may be chat members at the same time if they joined via this link. Must be in range 1..100_000. Reflects the member_limit parameter.

impl EditChatInviteLink<'_>[src]

pub async fn call(self) -> Result<InviteLink, MethodCall>[src]

Calls the method.

Trait Implementations

impl<'a> Clone for EditChatInviteLink<'a>[src]

impl<'a> Debug for EditChatInviteLink<'a>[src]

impl<'a> Serialize for EditChatInviteLink<'a>[src]

Auto Trait Implementations

impl<'a> !RefUnwindSafe for EditChatInviteLink<'a>

impl<'a> Send for EditChatInviteLink<'a>

impl<'a> Sync for EditChatInviteLink<'a>

impl<'a> Unpin for EditChatInviteLink<'a>

impl<'a> !UnwindSafe for EditChatInviteLink<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.