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>,
pub subscription_period: Option<u32>,
pub subscription_price: 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
subscription_period: Option<u32>The number of seconds the subscription will be active for before the next payment
subscription_price: Option<u32>The amount of Telegram Stars a user must pay initially and after each subsequent subscription period to be a member of the chat using the link
Trait Implementations§
Source§impl Clone for ChatInviteLink
impl Clone for ChatInviteLink
Source§fn clone(&self) -> ChatInviteLink
fn clone(&self) -> ChatInviteLink
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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>,
Source§impl Hash for ChatInviteLink
impl Hash for ChatInviteLink
Source§impl PartialEq for ChatInviteLink
impl PartialEq for ChatInviteLink
Source§impl Serialize for ChatInviteLink
impl Serialize for ChatInviteLink
impl Eq 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Erasable for T
impl<T> Erasable for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more