pub struct MulticastMessage {
pub tokens: Vec<String>,
pub data: Option<HashMap<String, String>>,
pub notification: Option<Notification>,
pub android: Option<AndroidConfig>,
pub webpush: Option<WebpushConfig>,
pub apns: Option<ApnsConfig>,
pub fcm_options: Option<FcmOptions>,
}Expand description
Represents a message to be sent to multiple recipients via FCM.
Fields§
§tokens: Vec<String>A list of registration tokens to send the message to.
data: Option<HashMap<String, String>>Arbitrary key/value payload.
notification: Option<Notification>Basic notification template to use across all platforms.
android: Option<AndroidConfig>Android specific options for messages sent through FCM connection server.
webpush: Option<WebpushConfig>Webpush protocol options.
apns: Option<ApnsConfig>Apple Push Notification Service specific options.
fcm_options: Option<FcmOptions>Template for FCM options across all platforms.
Trait Implementations§
Source§impl Clone for MulticastMessage
impl Clone for MulticastMessage
Source§fn clone(&self) -> MulticastMessage
fn clone(&self) -> MulticastMessage
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MulticastMessage
impl Debug for MulticastMessage
Source§impl Default for MulticastMessage
impl Default for MulticastMessage
Source§fn default() -> MulticastMessage
fn default() -> MulticastMessage
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MulticastMessage
impl<'de> Deserialize<'de> for MulticastMessage
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for MulticastMessage
impl RefUnwindSafe for MulticastMessage
impl Send for MulticastMessage
impl Sync for MulticastMessage
impl Unpin for MulticastMessage
impl UnwindSafe for MulticastMessage
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