Struct tbot::types::chat::InviteLink[][src]

pub struct InviteLink {
    pub link: String,
    pub creator: User,
    pub is_primary: bool,
    pub is_revoked: bool,
    pub expire_date: Option<i64>,
    pub member_limit: Option<u32>,

Represents an invite link of a chat.

See ChatInviteLink from Bot API docs.


link: String

The invite link itself.

creator: User

The user who created this invite link.

is_primary: bool

true if this link is the primary one.

is_revoked: bool

true if this link has been revoked.

expire_date: Option<i64>

Timestamp when this link expires.

member_limit: Option<u32>

Maximum amount of users that can be chat members at the same time when joining via this invite link. In range 1..100_000.

Trait Implementations

impl Clone for InviteLink[src]

impl Debug for InviteLink[src]

impl<'de> Deserialize<'de> for InviteLink[src]

impl Hash for InviteLink[src]

impl PartialEq<InviteLink> for InviteLink[src]

impl Eq for InviteLink[src]

impl StructuralEq for InviteLink[src]

impl StructuralPartialEq for InviteLink[src]

Auto Trait Implementations

impl RefUnwindSafe for InviteLink

impl Send for InviteLink

impl Sync for InviteLink

impl Unpin for InviteLink

impl UnwindSafe for InviteLink

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.

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>,