[−][src]Struct pushover_api::Message
The full message body to send to the Pushover API.
Fields
token: String
The application's API token. You can register one here or view your existing ones here.
user: String
The user or group identifier to send the message to.
message: String
The actual message to send.
device: Option<String>
A comma-separated list of devices to send the message to.
If any of the devices for the specified user/group is disabled or invalid,
or is set to None
, the message will be sent to all active devices
for that user/group.
title: Option<String>
The title for the message, if set to None
the application's name will
be shown instead.
url: Option<String>
A supplementary URL to show with the message.
url_title: Option<String>
A title to use for the supplementary URL.
priority: Option<MessagePriority>
The priority of the message.
sound: Option<String>
The name of one of the sounds to use, see the Pushover documentation for a list of all sounds.
timestamp: Option<i64>
A Unix timestamp to use as the date time for the message instead of when the Pushover API received it.
Implementations
impl Message
[src]
pub fn send(&self) -> Result<MessageResponse>
[src]
Send this message to the Pushover API.
Trait Implementations
impl Debug for Message
[src]
impl Default for Message
[src]
impl<'de> Deserialize<'de> for Message
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for Message
[src]
Auto Trait Implementations
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnwindSafe for Message
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,