Struct tbot::methods::CreateChatInviteLink[][src]

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

Creates a secondary invite link for a chat.

Reflects the createChatInviteLink method.


impl<'a> CreateChatInviteLink<'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 CreateChatInviteLink<'_>[src]

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

Calls the method.

Trait Implementations

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

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

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

Auto Trait Implementations

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

impl<'a> Send for CreateChatInviteLink<'a>

impl<'a> Sync for CreateChatInviteLink<'a>

impl<'a> Unpin for CreateChatInviteLink<'a>

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

Blanket Implementations

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

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

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

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

The type returned in the event of a conversion error.