openfga 1.0.2

Rust SDK for OpenFGA — the open-source authorization system
Documentation
/*
 * 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 crate::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct V1Difference {
    #[serde(rename = "base")]
    pub base: Box<models::Userset>,
    #[serde(rename = "subtract")]
    pub subtract: Box<models::Userset>,
}

impl V1Difference {
    pub fn new(base: models::Userset, subtract: models::Userset) -> V1Difference {
        V1Difference {
            base: Box::new(base),
            subtract: Box::new(subtract),
        }
    }
}