pub struct ChatInviteLinkInfo { /* private fields */ }
Expand description
Contains information about a chat invite link
Implementations§
Source§impl ChatInviteLinkInfo
impl ChatInviteLinkInfo
pub fn from_json<S: AsRef<str>>(json: S) -> Result<Self>
pub fn builder() -> ChatInviteLinkInfoBuilder
pub fn chat_id(&self) -> i64
pub fn accessible_for(&self) -> i32
pub fn type_(&self) -> &ChatType
pub fn title(&self) -> &String
pub fn photo(&self) -> &Option<ChatPhotoInfo>
pub fn description(&self) -> &String
pub fn member_count(&self) -> i32
pub fn member_user_ids(&self) -> &Vec<i64>
pub fn creates_join_request(&self) -> bool
pub fn is_public(&self) -> bool
Trait Implementations§
Source§impl AsRef<ChatInviteLinkInfo> for ChatInviteLinkInfo
impl AsRef<ChatInviteLinkInfo> for ChatInviteLinkInfo
Source§fn as_ref(&self) -> &ChatInviteLinkInfo
fn as_ref(&self) -> &ChatInviteLinkInfo
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for ChatInviteLinkInfo
impl Clone for ChatInviteLinkInfo
Source§fn clone(&self) -> ChatInviteLinkInfo
fn clone(&self) -> ChatInviteLinkInfo
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 ChatInviteLinkInfo
impl Debug for ChatInviteLinkInfo
Source§impl Default for ChatInviteLinkInfo
impl Default for ChatInviteLinkInfo
Source§fn default() -> ChatInviteLinkInfo
fn default() -> ChatInviteLinkInfo
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ChatInviteLinkInfo
impl<'de> Deserialize<'de> for ChatInviteLinkInfo
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 ChatInviteLinkInfo
impl RefUnwindSafe for ChatInviteLinkInfo
impl Send for ChatInviteLinkInfo
impl Sync for ChatInviteLinkInfo
impl Unpin for ChatInviteLinkInfo
impl UnwindSafe for ChatInviteLinkInfo
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