enbbox 1.0.1

Notification infrastructure API — open-source alternative to Novu/Courier
Documentation
/*
 * enbbox API
 *
 * Notification infrastructure API — open-source alternative to Novu/Courier
 *
 * The version of the OpenAPI document: 1.0.0
 * 
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

/// Credential : Provider credential payload. The credentials object holds all provider-specific data (device tokens, webhook URLs, chat IDs, etc.).
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct Credential {
    /// Provider-specific credentials as a JSON object.
    #[serde(rename = "credentials")]
    pub credentials: serde_json::Value,
}

impl Credential {
    /// Provider credential payload. The credentials object holds all provider-specific data (device tokens, webhook URLs, chat IDs, etc.).
    pub fn new(credentials: serde_json::Value) -> Credential {
        Credential {
            credentials,
        }
    }
}