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