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};

/// CredentialRecord : A provider's credentials stored on a subscriber.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct CredentialRecord {
    #[serde(rename = "credentials")]
    pub credentials: serde_json::Value,
    #[serde(rename = "provider_id")]
    pub provider_id: String,
}

impl CredentialRecord {
    /// A provider's credentials stored on a subscriber.
    pub fn new(credentials: serde_json::Value, provider_id: String) -> CredentialRecord {
        CredentialRecord {
            credentials,
            provider_id,
        }
    }
}