/*
* OpenFGA
*
* A high performance and flexible authorization/permission engine built for developers and inspired by Google Zanzibar.
*
* The version of the OpenAPI document: 1.x
* Contact: community@openfga.dev
* Generated by: https://openapi-generator.tech
*/
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct Resource {
#[serde(rename = "type")]
pub r#type: String,
#[serde(rename = "id")]
pub id: String,
#[serde(rename = "properties", skip_serializing_if = "Option::is_none")]
pub properties: Option<serde_json::Value>,
}
impl Resource {
pub fn new(r#type: String, id: String) -> Resource {
Resource {
r#type,
id,
properties: None,
}
}
}