Enum rust_tdlib::types::DeviceToken [−][src]
pub enum DeviceToken { ApplePush(DeviceTokenApplePush), ApplePushVoIP(DeviceTokenApplePushVoIP), BlackBerryPush(DeviceTokenBlackBerryPush), FirebaseCloudMessaging(DeviceTokenFirebaseCloudMessaging), MicrosoftPush(DeviceTokenMicrosoftPush), MicrosoftPushVoIP(DeviceTokenMicrosoftPushVoIP), SimplePush(DeviceTokenSimplePush), TizenPush(DeviceTokenTizenPush), UbuntuPush(DeviceTokenUbuntuPush), WebPush(DeviceTokenWebPush), WindowsPush(DeviceTokenWindowsPush), // some variants omitted }
Expand description
Represents a data needed to subscribe for push notifications through registerDevice method. To use specific push notification service, the correct application platform must be specified and a valid server authentication data must be uploaded at https://my.telegram.org
Variants
ApplePush(DeviceTokenApplePush)
Expand description
A token for Apple Push Notification service
ApplePushVoIP(DeviceTokenApplePushVoIP)
Expand description
A token for Apple Push Notification service VoIP notifications
BlackBerryPush(DeviceTokenBlackBerryPush)
Expand description
A token for BlackBerry Push Service
FirebaseCloudMessaging(DeviceTokenFirebaseCloudMessaging)
Expand description
A token for Firebase Cloud Messaging
MicrosoftPush(DeviceTokenMicrosoftPush)
Expand description
A token for Microsoft Push Notification Service
MicrosoftPushVoIP(DeviceTokenMicrosoftPushVoIP)
Expand description
A token for Microsoft Push Notification Service VoIP channel
SimplePush(DeviceTokenSimplePush)
Expand description
A token for Simple Push API for Firefox OS
TizenPush(DeviceTokenTizenPush)
Expand description
A token for Tizen Push Service
UbuntuPush(DeviceTokenUbuntuPush)
Expand description
A token for Ubuntu Push Client service
WebPush(DeviceTokenWebPush)
Expand description
A token for web Push API
WindowsPush(DeviceTokenWindowsPush)
Expand description
A token for Windows Push Notification Services
Implementations
Trait Implementations
impl AsRef<DeviceToken> for DeviceToken
[src]
impl AsRef<DeviceToken> for DeviceToken
[src]fn as_ref(&self) -> &DeviceToken
[src]
fn as_ref(&self) -> &DeviceToken
[src]Performs the conversion.
impl Clone for DeviceToken
[src]
impl Clone for DeviceToken
[src]fn clone(&self) -> DeviceToken
[src]
fn clone(&self) -> DeviceToken
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for DeviceToken
[src]
impl Debug for DeviceToken
[src]impl Default for DeviceToken
[src]
impl Default for DeviceToken
[src]impl<'de> Deserialize<'de> for DeviceToken
[src]
impl<'de> Deserialize<'de> for DeviceToken
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
impl Serialize for DeviceToken
[src]
impl Serialize for DeviceToken
[src]Auto Trait Implementations
impl RefUnwindSafe for DeviceToken
impl Send for DeviceToken
impl Sync for DeviceToken
impl Unpin for DeviceToken
impl UnwindSafe for DeviceToken
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,