/*
* Revolt API
*
* Open source user-first chat platform.
*
* The version of the OpenAPI document: 0.6.5
* Contact: contact@revolt.chat
* Generated by: https://openapi-generator.tech
*/
/// RolePermissions : Permissions available to this role
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct RolePermissions {
/// Allow bit flags
#[serde(rename = "a")]
pub a: i64,
/// Disallow bit flags
#[serde(rename = "d")]
pub d: i64,
}
impl RolePermissions {
/// Permissions available to this role
pub fn new(a: i64, d: i64) -> RolePermissions {
RolePermissions {
a,
d,
}
}
}