use serde::{Deserialize, Serialize}; /*
                                      * Firebase Cloud Messaging API
                                      *
                                      * FCM send API that provides a cross-platform messaging solution to reliably deliver messages at no cost.
                                      *
                                      * The version of the OpenAPI document: v1
                                      *
                                      * Generated by: https://openapi-generator.tech
                                      */

use crate::google_rest_apis::fcm_v1::models;

/// WebpushFcmOptions : Options for features provided by the FCM SDK for Web.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct WebpushFcmOptions {
    /// Label associated with the message's analytics data.
    #[serde(rename = "analyticsLabel", skip_serializing_if = "Option::is_none")]
    pub analytics_label: Option<String>,
    /// The link to open when the user clicks on the notification. For all URL values, HTTPS is required.
    #[serde(rename = "link", skip_serializing_if = "Option::is_none")]
    pub link: Option<String>,
}

impl WebpushFcmOptions {
    /// Options for features provided by the FCM SDK for Web.
    pub fn new() -> WebpushFcmOptions {
        WebpushFcmOptions {
            analytics_label: None,
            link: None,
        }
    }
}
