Struct telegram_bot_ars::types::ChatInviteLink
source · pub struct ChatInviteLink {
pub invite_link: String,
pub creator: User,
pub is_primary: bool,
pub is_revoked: bool,
pub expire_date: Option<i64>,
pub member_limit: Option<i64>,
}Expand description
Represents an invite link for a chat.
Fields§
§invite_link: StringThe invite link. If the link was created by another chat administrator, then the second part of the link will be replaced with “…”.
creator: UserCreator of the link
is_primary: boolTrue, if the link is primary
is_revoked: boolTrue, if the link is revoked
expire_date: Option<i64>Point in time (Unix timestamp) when the link will expire or has been expired
member_limit: Option<i64>Maximum number of users that can be members of the chat simultaneously after joining the chat via this invite link; 1-99999
Trait Implementations§
source§impl Clone for ChatInviteLink
impl Clone for ChatInviteLink
source§fn clone(&self) -> ChatInviteLink
fn clone(&self) -> ChatInviteLink
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 ChatInviteLink
impl Debug for ChatInviteLink
source§impl<'de> Deserialize<'de> for ChatInviteLink
impl<'de> Deserialize<'de> for ChatInviteLink
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<ChatInviteLink, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<ChatInviteLink, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<ChatInviteLink> for ChatInviteLink
impl PartialEq<ChatInviteLink> for ChatInviteLink
source§fn eq(&self, other: &ChatInviteLink) -> bool
fn eq(&self, other: &ChatInviteLink) -> bool
source§impl PartialOrd<ChatInviteLink> for ChatInviteLink
impl PartialOrd<ChatInviteLink> for ChatInviteLink
source§fn partial_cmp(&self, other: &ChatInviteLink) -> Option<Ordering>
fn partial_cmp(&self, other: &ChatInviteLink) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read more