Enum a2::request::notification::PushType
source · pub enum PushType {
Alert,
Background,
Location,
Voip,
FileProvider,
Mdm,
LiveActivity,
PushToTalk,
}
Expand description
The apns-push-type header field has the following valid values. The descriptions below describe when and how to use these values. Send an apns-push-type header with each push. Recent and upcoming features may not work if this header is missing. See the table above to determine if this header is required or optional.
see https://developer.apple.com/documentation/usernotifications/setting_up_a_remote_notification_server/sending_notification_requests_to_apns#4294485
Variants§
Alert
The push type for notifications that trigger a user interaction—for example, an alert, badge, or sound.
Background
The push type for notifications that deliver content in the background, and don’t trigger any user interactions.
Location
The push type for notifications that request a user’s location.
Voip
The push type for notifications that provide information about an incoming Voice-over-IP (VoIP) call.
FileProvider
The push type to signal changes to a File Provider extension.
Mdm
The push type for notifications that tell managed devices to contact the MDM server.
LiveActivity
The push type to signal changes to a live activity session.
PushToTalk
The push type for notifications that provide information about updates to your application’s push to talk services.
Trait Implementations§
source§impl PartialEq for PushType
impl PartialEq for PushType
impl Copy for PushType
impl Eq for PushType
impl StructuralPartialEq for PushType
Auto Trait Implementations§
impl Freeze for PushType
impl RefUnwindSafe for PushType
impl Send for PushType
impl Sync for PushType
impl Unpin for PushType
impl UnwindSafe for PushType
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.