/*
* 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 Tuple {
#[serde(rename = "key")]
pub key: models::TupleKey,
#[serde(rename = "timestamp")]
pub timestamp: chrono::DateTime<chrono::FixedOffset>,
}
impl Tuple {
pub fn new(key: models::TupleKey, timestamp: chrono::DateTime<chrono::FixedOffset>) -> Tuple {
Tuple { key, timestamp }
}
}