[−][src]Enum rtdlib::types::TMeUrlType
Describes the type of a URL linking to an internal Telegram entity
Variants
ChatInvite(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
impl TMeUrlType
[src]
pub fn from_json<S: AsRef<str>>(json: S) -> RTDResult<Self>
[src]
pub fn is_chat_invite(&self) -> bool
[src]
pub fn is_sticker_set(&self) -> bool
[src]
pub fn is_supergroup(&self) -> bool
[src]
pub fn is_user(&self) -> bool
[src]
pub fn on_chat_invite<F: FnOnce(&TMeUrlTypeChatInvite)>(&self, fnc: F) -> &Self
[src]
pub fn on_sticker_set<F: FnOnce(&TMeUrlTypeStickerSet)>(&self, fnc: F) -> &Self
[src]
pub fn on_supergroup<F: FnOnce(&TMeUrlTypeSupergroup)>(&self, fnc: F) -> &Self
[src]
pub fn on_user<F: FnOnce(&TMeUrlTypeUser)>(&self, fnc: F) -> &Self
[src]
pub fn as_chat_invite(&self) -> Option<&TMeUrlTypeChatInvite>
[src]
pub fn as_sticker_set(&self) -> Option<&TMeUrlTypeStickerSet>
[src]
pub fn as_supergroup(&self) -> Option<&TMeUrlTypeSupergroup>
[src]
pub fn as_user(&self) -> Option<&TMeUrlTypeUser>
[src]
pub fn chat_invite<T: AsRef<TMeUrlTypeChatInvite>>(t: T) -> Self
[src]
pub fn sticker_set<T: AsRef<TMeUrlTypeStickerSet>>(t: T) -> Self
[src]
pub fn supergroup<T: AsRef<TMeUrlTypeSupergroup>>(t: T) -> Self
[src]
pub fn user<T: AsRef<TMeUrlTypeUser>>(t: T) -> Self
[src]
Trait Implementations
impl AsRef<TMeUrlType> for TMeUrlType
[src]
fn as_ref(&self) -> &TMeUrlType
[src]
impl Clone for TMeUrlType
[src]
fn clone(&self) -> TMeUrlType
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for TMeUrlType
[src]
impl Default for TMeUrlType
[src]
impl<'de> Deserialize<'de> for TMeUrlType
[src]
fn deserialize<D>(deserializer: D) -> Result<TMeUrlType, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
impl RObject for TMeUrlType
[src]
impl Serialize for TMeUrlType
[src]
Auto Trait Implementations
impl RefUnwindSafe for TMeUrlType
impl Send for TMeUrlType
impl Sync for TMeUrlType
impl Unpin for TMeUrlType
impl UnwindSafe for TMeUrlType
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,