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

/// BulkPreferences : Bulk-update subscriber notification preferences.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct BulkPreferences {
    #[serde(rename = "preferences")]
    pub preferences: Vec<models::BulkPreferenceItem>,
}

impl BulkPreferences {
    /// Bulk-update subscriber notification preferences.
    pub fn new(preferences: Vec<models::BulkPreferenceItem>) -> BulkPreferences {
        BulkPreferences {
            preferences,
        }
    }
}