Enum rust_tdlib::types::DeviceToken
source · 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§
source§impl AsRef<DeviceToken> for DeviceToken
impl AsRef<DeviceToken> for DeviceToken
source§fn as_ref(&self) -> &DeviceToken
fn as_ref(&self) -> &DeviceToken
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Clone for DeviceToken
impl Clone for DeviceToken
source§fn clone(&self) -> DeviceToken
fn clone(&self) -> DeviceToken
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 DeviceToken
impl Debug for DeviceToken
source§impl Default for DeviceToken
impl Default for DeviceToken
source§fn default() -> DeviceToken
fn default() -> DeviceToken
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for DeviceToken
impl<'de> Deserialize<'de> for DeviceToken
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