authress 0.1.66

The Authress SDK for RUST - provides authorization as a service with fully compatible REST apis. Authentication / Authorization / User Identity Roles / Permissions / Policies
Documentation
/// TenantCollection : A collection of tenants.



#[derive(Default, Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct TenantCollection {
    #[serde(rename = "tenants")]
    pub tenants: Vec<crate::models::Tenant>,
    #[serde(rename = "pagination", skip_serializing_if = "Option::is_none")]
    pub pagination: Option<Box<crate::models::Pagination>>,
}

impl TenantCollection {
    /// A collection of tenants.
    pub fn new(tenants: Vec<crate::models::Tenant>) -> TenantCollection {
        TenantCollection {
            tenants,
            pagination: None,
        }
    }
}