Expand description
Ergonomic, Rust-facing message types.
These are distinct from the crate-internal wire-format DTOs used to talk
to the FCM v1 REST API (see crate::messaging::fcm_v1), so that the
public API never exposes Google’s REST field naming or shapes directly.
Structs§
- Android
Config - Android-specific delivery options for a
Message. - Apns
Config - Apple Push Notification Service-specific delivery options for a
Message, as a raw APNs payload. - Batch
Response - The response to
crate::messaging::MessagingClient::send_eachorcrate::messaging::MessagingClient::send_each_for_multicast. - Message
- A message to send via Firebase Cloud Messaging.
- Notification
- A simple, display notification shown by the client’s OS.
- Send
Error - The error for a single failed message within a batch send.
- Topic
Management Error - A single failed registration token within a
TopicManagementResponse. - Topic
Management Response - The response to
crate::messaging::MessagingClient::subscribe_to_topicorcrate::messaging::MessagingClient::unsubscribe_from_topic. - Webpush
Config - Web Push-specific delivery options for a
Message. - Webpush
Notification - A Web Push display notification, following the Web Notifications API
(
https://developer.mozilla.org/docs/Web/API/Notification) — the shape FCM forwards verbatim aswebpush.notificationto the browser’s push event, distinct fromNotification’s cross-platform title/body/image.
Enums§
- Send
Result - The outcome of sending a single
Messageas part of a batch (crate::messaging::MessagingClient::send_eachorcrate::messaging::MessagingClient::send_each_for_multicast). - Target
- Who an FCM
Messageis delivered to.