Struct tbot::types::chat::InviteLink
source · 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>,
}Expand description
Represents an invite link of a chat.
See ChatInviteLink from Bot API docs.
Fields§
§link: StringThe invite link itself.
creator: UserThe user who created this invite link.
is_primary: booltrue if this link is the primary one.
is_revoked: booltrue 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§
source§impl Clone for InviteLink
impl Clone for InviteLink
source§fn clone(&self) -> InviteLink
fn clone(&self) -> InviteLink
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for InviteLink
impl Debug for InviteLink
source§impl<'de> Deserialize<'de> for InviteLink
impl<'de> Deserialize<'de> for InviteLink
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for InviteLink
impl Hash for InviteLink
source§impl PartialEq<InviteLink> for InviteLink
impl PartialEq<InviteLink> for InviteLink
source§fn eq(&self, other: &InviteLink) -> bool
fn eq(&self, other: &InviteLink) -> bool
This method tests for
self and other values to be equal, and is used
by ==.