fcm_rs/lib.rs
1//! # FCM Rust Crate
2//!
3//! This crate provides a Rust client for the Firebase Cloud Messaging (FCM) API V1, allowing you to send notifications and data messages to Android and iOS devices.
4//!
5//! ## Features
6//! * **FCM API V1 Support:** Utilizes the latest FCM API V1 endpoint for sending messages.
7//! * **OAuth2 Authentication:** Provides secure authentication using service account credentials.
8//! * **Automatic Token Management:** Handles access token retrieval and refreshing seamlessly using `yup-oauth2`.
9//! * **Error Handling:** Includes comprehensive error handling for API requests, authentication, and deserialization.
10
11pub mod client; // The FcmClient struct and methods to interact with FCM
12pub mod conversions;
13pub mod error; // Custom error types for FCM interactions
14pub mod models; // Data structures for FCM messages, responses, etc. // Implementations for converting between types