pub struct Message {
pub token: String,
pub user: String,
pub message: String,
pub device: Option<String>,
pub title: Option<String>,
pub url: Option<String>,
pub url_title: Option<String>,
pub priority: Option<MessagePriority>,
pub sound: Option<String>,
pub timestamp: Option<i64>,
}
Expand description
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.