Struct pushover_rs::AttachmentMessage
source · [−]pub struct AttachmentMessage {
pub app_token: String,
pub user_key: String,
pub message: String,
pub attachment: String,
pub title: Option<String>,
pub url: Option<String>,
pub url_title: Option<String>,
pub priority: Option<String>,
pub sound: Option<String>,
pub timestamp: Option<String>,
pub devices: Option<Vec<String>>,
}Expand description
A message containing an attachment, to be used in conjuction with the send_pushover_request_with_attachment function.
Note: It is preferred to create a Message through the AttachmentMessageBuilder. *
Fields
app_token: String(Required) Your app API token, see https://pushover.net/apps/[your application ID]
user_key: String(Required) Your User key, see your dashboard (https://pushover.net/ top-right)
message: String(Required) Your message
attachment: String(Required) An attachment file path to send with the message. (Max size: 2,5MB)
title: Option<String>The title of the message, otherwise your app’s name will be used
url: Option<String>A supplementary URL to show with your message
url_title: Option<String>A title for your supplementary URL, otherwise just the URL is shown
priority: Option<String>Send as -2 to generate no notification/alert, -1 to always send as a quiet notification, 1 to display as high-priority and bypass the user’s quiet hours, or 2 to also require confirmation from the user
sound: Option<String>The name of one of the sounds supported by device clients to override the user’s default sound choice. (See sound list: https://pushover.net/api#sounds)
timestamp: Option<String>A Unix timestamp of your message’s date and time to display to the user, rather than the time your message is received by our API
devices: Option<Vec<String>>A list of device names to send the push notifications to, if you want to limit the notification to certain devices.
Implementations
Trait Implementations
sourceimpl Clone for AttachmentMessage
impl Clone for AttachmentMessage
sourcefn clone(&self) -> AttachmentMessage
fn clone(&self) -> AttachmentMessage
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for AttachmentMessage
impl Debug for AttachmentMessage
Auto Trait Implementations
impl RefUnwindSafe for AttachmentMessage
impl Send for AttachmentMessage
impl Sync for AttachmentMessage
impl Unpin for AttachmentMessage
impl UnwindSafe for AttachmentMessage
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more