/*
* Tapis PgREST API
*
* The Tapis PgREST API provides a RESTful interface to a managed SQL-db-as-a-service.
*
* The version of the OpenAPI document: 1.0.0
* Contact: cicsupport@tacc.utexas.edu
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct NewRole {
/// The name of the role to create.
#[serde(rename = "role_name")]
pub role_name: String,
/// A description of the role.
#[serde(rename = "description")]
pub description: String,
}
impl NewRole {
pub fn new(role_name: String, description: String) -> NewRole {
NewRole {
role_name,
description,
}
}
}