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 serde::{Deserialize, Serialize};

#[derive(
    Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize, Default,
)]
pub enum TupleOperation {
    #[serde(rename = "TUPLE_OPERATION_WRITE")]
    #[default]
    TupleOperationWrite,
    #[serde(rename = "TUPLE_OPERATION_DELETE")]
    TupleOperationDelete,
}

impl std::fmt::Display for TupleOperation {
    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
        match self {
            Self::TupleOperationWrite => write!(f, "TUPLE_OPERATION_WRITE"),
            Self::TupleOperationDelete => write!(f, "TUPLE_OPERATION_DELETE"),
        }
    }
}