pub enum TMeUrlType {
ChatInvite(Box<TMeUrlTypeChatInvite>),
StickerSet(TMeUrlTypeStickerSet),
Supergroup(TMeUrlTypeSupergroup),
User(TMeUrlTypeUser),
// some variants omitted
}
Expand description
Describes the type of a URL linking to an internal Telegram entity
Variants§
ChatInvite(Box<TMeUrlTypeChatInvite>)
A chat invite link
StickerSet(TMeUrlTypeStickerSet)
A URL linking to a sticker set
Supergroup(TMeUrlTypeSupergroup)
A URL linking to a public supergroup or channel
User(TMeUrlTypeUser)
A URL linking to a user
Implementations§
Trait Implementations§
Source§impl AsRef<TMeUrlType> for TMeUrlType
impl AsRef<TMeUrlType> for TMeUrlType
Source§fn as_ref(&self) -> &TMeUrlType
fn as_ref(&self) -> &TMeUrlType
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for TMeUrlType
impl Clone for TMeUrlType
Source§fn clone(&self) -> TMeUrlType
fn clone(&self) -> TMeUrlType
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 TMeUrlType
impl Debug for TMeUrlType
Source§impl Default for TMeUrlType
impl Default for TMeUrlType
Source§fn default() -> TMeUrlType
fn default() -> TMeUrlType
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TMeUrlType
impl<'de> Deserialize<'de> for TMeUrlType
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 TMeUrlType
impl RefUnwindSafe for TMeUrlType
impl Send for TMeUrlType
impl Sync for TMeUrlType
impl Unpin for TMeUrlType
impl UnwindSafe for TMeUrlType
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