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
sourceimpl AsRef<DeviceToken> for DeviceToken
impl AsRef<DeviceToken> for DeviceToken
sourcefn as_ref(&self) -> &DeviceToken
fn as_ref(&self) -> &DeviceToken
Converts this type into a shared reference of the (usually inferred) input type.
sourceimpl Clone for DeviceToken
impl Clone for DeviceToken
sourcefn clone(&self) -> DeviceToken
fn clone(&self) -> DeviceToken
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for DeviceToken
impl Debug for DeviceToken
sourceimpl Default for DeviceToken
impl Default for DeviceToken
sourceimpl<'de> Deserialize<'de> for DeviceToken
impl<'de> Deserialize<'de> for DeviceToken
sourcefn 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
sourceimpl Serialize for DeviceToken
impl Serialize for DeviceToken
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more