Skip to main content

Module message

Module message 

Source
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§

AndroidConfig
Android-specific delivery options for a Message.
ApnsConfig
Apple Push Notification Service-specific delivery options for a Message, as a raw APNs payload.
BatchResponse
The response to crate::messaging::MessagingClient::send_each or crate::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.
SendError
The error for a single failed message within a batch send.
TopicManagementError
A single failed registration token within a TopicManagementResponse.
TopicManagementResponse
The response to crate::messaging::MessagingClient::subscribe_to_topic or crate::messaging::MessagingClient::unsubscribe_from_topic.
WebpushConfig
Web Push-specific delivery options for a Message.
WebpushNotification
A Web Push display notification, following the Web Notifications API (https://developer.mozilla.org/docs/Web/API/Notification) — the shape FCM forwards verbatim as webpush.notification to the browser’s push event, distinct from Notification’s cross-platform title/body/image.

Enums§

SendResult
The outcome of sending a single Message as part of a batch (crate::messaging::MessagingClient::send_each or crate::messaging::MessagingClient::send_each_for_multicast).
Target
Who an FCM Message is delivered to.