pub struct ReplacePrimaryChatInviteLink { /* private fields */ }
Expand description
Replaces current primary invite link for a chat with a new primary invite link. Available for basic groups, supergroups, and channels. Requires administrator privileges and can_invite_users right
Implementations§
Trait Implementations§
Source§impl AsRef<ReplacePrimaryChatInviteLink> for ReplacePrimaryChatInviteLink
impl AsRef<ReplacePrimaryChatInviteLink> for ReplacePrimaryChatInviteLink
Source§fn as_ref(&self) -> &ReplacePrimaryChatInviteLink
fn as_ref(&self) -> &ReplacePrimaryChatInviteLink
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for ReplacePrimaryChatInviteLink
impl Clone for ReplacePrimaryChatInviteLink
Source§fn clone(&self) -> ReplacePrimaryChatInviteLink
fn clone(&self) -> ReplacePrimaryChatInviteLink
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 ReplacePrimaryChatInviteLink
impl Debug for ReplacePrimaryChatInviteLink
Source§impl Default for ReplacePrimaryChatInviteLink
impl Default for ReplacePrimaryChatInviteLink
Source§fn default() -> ReplacePrimaryChatInviteLink
fn default() -> ReplacePrimaryChatInviteLink
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ReplacePrimaryChatInviteLink
impl<'de> Deserialize<'de> for ReplacePrimaryChatInviteLink
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 ReplacePrimaryChatInviteLink
impl RefUnwindSafe for ReplacePrimaryChatInviteLink
impl Send for ReplacePrimaryChatInviteLink
impl Sync for ReplacePrimaryChatInviteLink
impl Unpin for ReplacePrimaryChatInviteLink
impl UnwindSafe for ReplacePrimaryChatInviteLink
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