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)
A token for Apple Push Notification service
ApplePushVoIP(DeviceTokenApplePushVoIP)
A token for Apple Push Notification service VoIP notifications
BlackBerryPush(DeviceTokenBlackBerryPush)
A token for BlackBerry Push Service
FirebaseCloudMessaging(DeviceTokenFirebaseCloudMessaging)
A token for Firebase Cloud Messaging
MicrosoftPush(DeviceTokenMicrosoftPush)
A token for Microsoft Push Notification Service
MicrosoftPushVoIP(DeviceTokenMicrosoftPushVoIP)
A token for Microsoft Push Notification Service VoIP channel
SimplePush(DeviceTokenSimplePush)
A token for Simple Push API for Firefox OS
TizenPush(DeviceTokenTizenPush)
A token for Tizen Push Service
UbuntuPush(DeviceTokenUbuntuPush)
A token for Ubuntu Push Client service
WebPush(DeviceTokenWebPush)
A token for web Push API
WindowsPush(DeviceTokenWindowsPush)
A token for Windows Push Notification Services
Implementations
Trait Implementations
Performs the conversion.
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
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
Mutably borrows from an owned value. Read more