pub struct Message {
pub key: String,
pub title: Option<String>,
pub message: String,
pub event: Option<String>,
pub actions: Option<Vec<String>>,
pub encrypt: bool,
pub password: Option<String>,
pub salt: Option<String>,
}
Expand description
SimplePush message data
Fields§
§key: String
Your simplepush.io key
title: Option<String>
Title of the message
message: String
Message body
event: Option<String>
The event the message should be associated with
actions: Option<Vec<String>>
Actions for feedback message, only simple actions are supported at this time
encrypt: bool
If true, the message will be sent with end-to-end encrypted using the provided password & salt
password: Option<String>
Password if the message is to be encrypted
salt: Option<String>
If set, this salt will be used for encryption, otherwise the DEFAULT_SALT
will be used
Implementations§
Auto Trait Implementations§
impl Freeze for Message
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnwindSafe for Message
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more