[−][src]Enum pushover_api::MessagePriority
The message priority.
Variants
From the Pushover documentation:
When the
priority
parameter is specified with a value of-2
, messages will be considered lowest priority and will not generate any notification. On iOS, the application badge number will be increased.
From the Pushover documentation:
Messages with a
priority
parameter of-1
will be considered low priority and will not generate any sound or vibration, but will still generate a popup/scrolling notification depending on the client operating system. Messages delivered during a user's quiet hours are sent as though they had a priority of (-1
).
From the Pushover documentation:
Messages sent without a
priority
parameter, or sent with the parameter set to0
, will have the default priority. These messages trigger sound, vibration, and display an alert according to the user's device settings. On iOS, the message will display at the top of the screen or as a modal dialog, as well as in the notification center. On Android, the message will scroll at the top of the screen and appear in the notification center.
If a user has quiet hours set and your message is received during those times, your message will be delivered as though it had a priority of
-1
.
From the Pushover documentation:
Messages sent with a
priority
of1
are high priority messages that bypass a user's quiet hours. These messages will always play a sound and vibrate (if the user's device is configured to) regardless of the delivery time. High-priority should only be used when necessary and appropriate.
High-priority messages are highlighted in red in the device clients.
Trait Implementations
impl Debug for MessagePriority
[src]
impl<'de> Deserialize<'de> for MessagePriority
[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
impl<'_> From<&'_ str> for MessagePriority
[src]
impl Serialize for MessagePriority
[src]
Auto Trait Implementations
impl RefUnwindSafe for MessagePriority
impl Send for MessagePriority
impl Sync for MessagePriority
impl Unpin for MessagePriority
impl UnwindSafe for MessagePriority
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,