#[repr(i32)]pub enum PushNotificationProvider {
Unspecified = 0,
Apns = 1,
ExpoAndroid = 2,
}Variants§
Implementations§
Source§impl PushNotificationProvider
impl PushNotificationProvider
Sourcepub fn is_valid(value: i32) -> bool
pub fn is_valid(value: i32) -> bool
Returns true if value is a variant of PushNotificationProvider.
Sourcepub fn from_i32(value: i32) -> Option<PushNotificationProvider>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<PushNotificationProvider>
Use the TryFrom<i32> implementation instead
Converts an i32 to a PushNotificationProvider, or None if value is not a valid variant.
Source§impl PushNotificationProvider
impl PushNotificationProvider
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<PushNotificationProvider>
pub fn from_str_name(value: &str) -> Option<PushNotificationProvider>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Clone for PushNotificationProvider
impl Clone for PushNotificationProvider
Source§fn clone(&self) -> PushNotificationProvider
fn clone(&self) -> PushNotificationProvider
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PushNotificationProvider
Source§impl Debug for PushNotificationProvider
impl Debug for PushNotificationProvider
Source§impl Default for PushNotificationProvider
impl Default for PushNotificationProvider
Source§fn default() -> PushNotificationProvider
fn default() -> PushNotificationProvider
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PushNotificationProvider
impl<'de> Deserialize<'de> for PushNotificationProvider
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PushNotificationProvider, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PushNotificationProvider, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for PushNotificationProvider
Source§impl Hash for PushNotificationProvider
impl Hash for PushNotificationProvider
Source§impl Ord for PushNotificationProvider
impl Ord for PushNotificationProvider
Source§fn cmp(&self, other: &PushNotificationProvider) -> Ordering
fn cmp(&self, other: &PushNotificationProvider) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for PushNotificationProvider
impl PartialEq for PushNotificationProvider
Source§fn eq(&self, other: &PushNotificationProvider) -> bool
fn eq(&self, other: &PushNotificationProvider) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for PushNotificationProvider
impl PartialOrd for PushNotificationProvider
Source§impl Serialize for PushNotificationProvider
impl Serialize for PushNotificationProvider
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for PushNotificationProvider
Source§impl TryFrom<i32> for PushNotificationProvider
impl TryFrom<i32> for PushNotificationProvider
Source§type Error = DecodeError
type Error = DecodeError
The type returned in the event of a conversion error.
Source§fn try_from(value: i32) -> Result<PushNotificationProvider, DecodeError>
fn try_from(value: i32) -> Result<PushNotificationProvider, DecodeError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for PushNotificationProvider
impl RefUnwindSafe for PushNotificationProvider
impl Send for PushNotificationProvider
impl Sync for PushNotificationProvider
impl Unpin for PushNotificationProvider
impl UnsafeUnpin for PushNotificationProvider
impl UnwindSafe for PushNotificationProvider
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more