pub struct AttachmentMessageBuilder { /* private fields */ }
Expand description

Helps build a correct Pushover request, with attachment.

Implementations

Creates a new MessageBuilder instance with the required minimal informations (User key, App token & Message)

Modifies the existing message.

Adds a title to your message

Removes the title. The title will be defaulted to your application name.

Adds an url (and optionally, an url title) to send along with your message.

If set, the URL title will be shown, otherwise the URL will be shown.

Removes both the url and url title from your message

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.

Resets the priority to default (0, normal)

Sets the sound to be used to notify the user.

See this list of available sounds: https://pushover.net/api#sounds

Removes the custom sound and reverts to the default sound.

Sets an 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

Resets the custom unix timestamp

Add a device name to send the notification to.

Ignores if the device name is already in the list.

Overrides the current devices list with device_names

Merges the current devices list with device_names, duplicates are eliminated

Add attachment to the message.

Attachments cannot be larger than 2.5MB.

Adding an attachment will make the API call blocking.

Transforms the MessageBuilder into a useable Message

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more