pub struct ChatInviteLink {
pub invite_link: String,
pub creator: User,
pub is_primary: bool,
pub is_revoked: bool,
pub expire_date: Option<DateTime<Utc>>,
pub member_limit: Option<i32>,
}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: boolIf the link is primary
is_revoked: boolIf the link is revoked
expire_date: Option<DateTime<Utc>>When the link will expire or has been expired
member_limit: Option<i32>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 duplicate 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 PartialEq for ChatInviteLink
impl PartialEq for ChatInviteLink
Source§impl Serialize for ChatInviteLink
impl Serialize for ChatInviteLink
impl StructuralPartialEq for ChatInviteLink
Auto Trait Implementations§
impl Freeze for ChatInviteLink
impl RefUnwindSafe for ChatInviteLink
impl Send for ChatInviteLink
impl Sync for ChatInviteLink
impl Unpin for ChatInviteLink
impl UnwindSafe for ChatInviteLink
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more