pub struct ChatInviteLink { /* private fields */ }
Expand description
Contains a chat invite link
Implementations§
Source§impl ChatInviteLink
impl ChatInviteLink
pub fn from_json<S: AsRef<str>>(json: S) -> Result<Self>
pub fn builder() -> ChatInviteLinkBuilder
pub fn invite_link(&self) -> &String
pub fn name(&self) -> &String
pub fn creator_user_id(&self) -> i64
pub fn date(&self) -> i32
pub fn edit_date(&self) -> i32
pub fn expiration_date(&self) -> i32
pub fn member_limit(&self) -> i32
pub fn member_count(&self) -> i32
pub fn pending_join_request_count(&self) -> i32
pub fn creates_join_request(&self) -> bool
pub fn is_primary(&self) -> bool
pub fn is_revoked(&self) -> bool
Trait Implementations§
Source§impl AsRef<ChatInviteLink> for ChatInviteLink
impl AsRef<ChatInviteLink> for ChatInviteLink
Source§fn as_ref(&self) -> &ChatInviteLink
fn as_ref(&self) -> &ChatInviteLink
Converts this type into a shared reference of the (usually inferred) input type.
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 Default for ChatInviteLink
impl Default for ChatInviteLink
Source§fn default() -> ChatInviteLink
fn default() -> ChatInviteLink
Returns the “default value” for a type. Read more
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
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