Struct telegram_bot_api::types::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<i64>,
pub member_limit: Option<i64>,
pub pending_join_request_count: Option<i64>,
}
Expand description
Represents an invite link for a chat.
Fields
invite_link: String
The invite link. If the link was created by another chat administrator, then the second part of the link will be replaced with “…”.
creator: User
Creator of the link
creates_join_request: bool
True, if users joining the chat via the link need to be approved by chat administrators
is_primary: bool
True, if the link is primary
is_revoked: bool
True, if the link is revoked
name: Option<String>
Optional. Invite link name
expire_date: Option<i64>
Optional. Point in time (Unix timestamp) when the link will expire or has been expired
member_limit: Option<i64>
Optional. The 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<i64>
Optional. Number of pending join requests created using this link
Implementations
Trait Implementations
sourceimpl Clone for ChatInviteLink
impl Clone for ChatInviteLink
sourcefn clone(&self) -> ChatInviteLink
fn clone(&self) -> ChatInviteLink
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ChatInviteLink
impl Debug for ChatInviteLink
sourceimpl<'de> Deserialize<'de> for ChatInviteLink
impl<'de> Deserialize<'de> for ChatInviteLink
sourcefn 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
sourceimpl Serialize for ChatInviteLink
impl Serialize for ChatInviteLink
Auto Trait Implementations
impl RefUnwindSafe for ChatInviteLink
impl Send for ChatInviteLink
impl Sync for ChatInviteLink
impl Unpin for ChatInviteLink
impl UnwindSafe for ChatInviteLink
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more