Enum rtdlib::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, you must specify the correct application platform and upload valid server authentication data at https://my.telegram.org
Variants
A token for Apple Push Notification service
Tuple Fields of ApplePush
A token for Apple Push Notification service VoIP notifications
Tuple Fields of ApplePushVoIP
A token for BlackBerry Push Service
Tuple Fields of BlackBerryPush
A token for Firebase Cloud Messaging
Tuple Fields of FirebaseCloudMessaging
A token for Microsoft Push Notification Service
Tuple Fields of MicrosoftPush
A token for Microsoft Push Notification Service VoIP channel
Tuple Fields of MicrosoftPushVoIP
A token for Simple Push API for Firefox OS
Tuple Fields of SimplePush
A token for Tizen Push Service
Tuple Fields of TizenPush
A token for Ubuntu Push Client service
Tuple Fields of UbuntuPush
A token for web Push API
Tuple Fields of WebPush
A token for Windows Push Notification Services
Tuple Fields of WindowsPush
Implementations
pub fn on_firebase_cloud_messaging<F: FnOnce(&DeviceTokenFirebaseCloudMessaging)>(
&self,
fnc: F
) -> &Self
pub fn on_microsoft_push_vo_i_p<F: FnOnce(&DeviceTokenMicrosoftPushVoIP)>(
&self,
fnc: F
) -> &Self
Trait Implementations
Performs the conversion.
fn deserialize<D>(deserializer: D) -> Result<DeviceToken, D::Error> where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<DeviceToken, D::Error> where
D: Deserializer<'de>,
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