Struct telegram_bot_api::methods::ExportChatInviteLink
source · [−]pub struct ExportChatInviteLink {
pub chat_id: ChatId,
}
Expand description
Use this method to generate a new primary invite link for a chat; any previously generated primary link is revoked. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. Returns the new invite link as String on success.
Fields
chat_id: ChatId
Unique identifier for the target chat or username of the target channel (in the format @channelusername)
Implementations
Trait Implementations
sourceimpl Clone for ExportChatInviteLink
impl Clone for ExportChatInviteLink
sourcefn clone(&self) -> ExportChatInviteLink
fn clone(&self) -> ExportChatInviteLink
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ExportChatInviteLink
impl Debug for ExportChatInviteLink
sourceimpl<'de> Deserialize<'de> for ExportChatInviteLink
impl<'de> Deserialize<'de> for ExportChatInviteLink
sourcefn 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
sourceimpl Methods for ExportChatInviteLink
impl Methods for ExportChatInviteLink
sourceimpl Serialize for ExportChatInviteLink
impl Serialize for ExportChatInviteLink
Auto Trait Implementations
impl RefUnwindSafe for ExportChatInviteLink
impl Send for ExportChatInviteLink
impl Sync for ExportChatInviteLink
impl Unpin for ExportChatInviteLink
impl UnwindSafe for ExportChatInviteLink
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more