Struct tg_flows::ChatInviteLink
source · pub struct ChatInviteLink {
pub invite_link: String,
pub creator: User,
pub creates_join_request: bool,
pub is_primary: bool,
pub is_revoked: bool,
pub name: Option<String>,
pub expire_date: Option<DateTime<Utc>>,
pub member_limit: Option<u32>,
pub pending_join_request_count: Option<u32>,
}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
creates_join_request: booltrue, if users joining the chat via the link need to be approved by
chat administrators
is_primary: booltrue, if the link is primary
is_revoked: booltrue, if the link is revoked
name: Option<String>Invite link name
expire_date: Option<DateTime<Utc>>Point in time when the link will expire or has been expired
member_limit: Option<u32>Maximum number of users that can be members of the chat simultaneously after joining the chat via this invite link; 1-99999
pending_join_request_count: Option<u32>Number of pending join requests created using this link
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<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 ChatInviteLink
impl Hash for ChatInviteLink
source§impl PartialEq<ChatInviteLink> for ChatInviteLink
impl PartialEq<ChatInviteLink> for ChatInviteLink
source§fn eq(&self, other: &ChatInviteLink) -> bool
fn eq(&self, other: &ChatInviteLink) -> bool
This method tests for
self and other values to be equal, and is used
by ==.