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

ApplePush

A token for Apple Push Notification service

Tuple Fields of ApplePush

0: DeviceTokenApplePush
ApplePushVoIP

A token for Apple Push Notification service VoIP notifications

Tuple Fields of ApplePushVoIP

0: DeviceTokenApplePushVoIP
BlackBerryPush

A token for BlackBerry Push Service

Tuple Fields of BlackBerryPush

0: DeviceTokenBlackBerryPush
FirebaseCloudMessaging

A token for Firebase Cloud Messaging

Tuple Fields of FirebaseCloudMessaging

0: DeviceTokenFirebaseCloudMessaging
MicrosoftPush

A token for Microsoft Push Notification Service

Tuple Fields of MicrosoftPush

0: DeviceTokenMicrosoftPush
MicrosoftPushVoIP

A token for Microsoft Push Notification Service VoIP channel

Tuple Fields of MicrosoftPushVoIP

0: DeviceTokenMicrosoftPushVoIP
SimplePush

A token for Simple Push API for Firefox OS

Tuple Fields of SimplePush

0: DeviceTokenSimplePush
TizenPush

A token for Tizen Push Service

Tuple Fields of TizenPush

0: DeviceTokenTizenPush
UbuntuPush

A token for Ubuntu Push Client service

Tuple Fields of UbuntuPush

0: DeviceTokenUbuntuPush
WebPush

A token for web Push API

Tuple Fields of WebPush

0: DeviceTokenWebPush
WindowsPush

A token for Windows Push Notification Services

Tuple Fields of WindowsPush

0: DeviceTokenWindowsPush

Implementations

Trait Implementations

Performs the conversion.

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

Return td type to json string

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.