Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Message doc comments #7

Merged
merged 1 commit into from
May 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions src/message/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,19 +71,19 @@ pub(crate) struct MessageInternal {
/// https://firebase.google.com/docs/reference/fcm/rest/v1/projects.messages?authuser=0#resource:-message
#[derive(Debug)]
pub struct Message {
/// Arbitrary key/value payload, which must be UTF-8 encoded.
/// Arbitrary key/value payload, which must be UTF-8 encoded. Values must be strings.
pub data: Option<Value>,
/// Basic notification template to use across all platforms.
pub notification: Option<Notification>,
/// Android specific options for messages sent through FCM connection server.
/// Target to send a message to.
pub target: Target,
/// Webpush protocol options.
/// Android specific options for messages sent through FCM connection server.
pub android: Option<AndroidConfig>,
/// Apple Push Notification Service specific options.
/// Webpush protocol options.
pub webpush: Option<WebpushConfig>,
/// Template for FCM SDK feature options to use across all platforms.
/// Apple Push Notification Service specific options.
pub apns: Option<ApnsConfig>,
/// Target to send a message to.
/// Template for FCM SDK feature options to use across all platforms.
pub fcm_options: Option<FcmOptions>,
}

Expand Down
Loading