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

/// PatchCredential : Partial credential payload for merge-updating an existing provider's credentials.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct PatchCredential {
    /// Provider-specific credentials. If present, replaces the entire credentials object.
    #[serde(rename = "credentials")]
    pub credentials: serde_json::Value,
}

impl PatchCredential {
    /// Partial credential payload for merge-updating an existing provider's credentials.
    pub fn new(credentials: serde_json::Value) -> PatchCredential {
        PatchCredential {
            credentials,
        }
    }
}