noah-sdk 1.1.0

A modern, type-safe Rust SDK for the Noah Business API
use crate::models;
use serde::{Deserialize, Serialize};

/// DenyExtensionPrincipal : The principal that was denied access.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct DenyExtensionPrincipal {
    /// ID of the principal.
    #[serde(rename = "ID")]
    pub id: String,
    /// Type of principal: * User * Customer
    #[serde(rename = "Type")]
    pub r#type: String,
}

impl DenyExtensionPrincipal {
    /// The principal that was denied access.
    pub fn new(id: String, r#type: String) -> DenyExtensionPrincipal {
        DenyExtensionPrincipal { id, r#type }
    }
}