openfga_sdk/models/
read_authorization_models_response.rs

1/**
2 * rust SDK for OpenFGA
3 *
4 * API version: 0.1
5 * Website: https://openfga.dev
6 * Documentation: https://openfga.dev/docs
7 * Support: https://discord.gg/8naAwJfWN6
8 * License: [Apache-2.0](https://github.com/openfga/rust-sdk/blob/main/LICENSE)
9 *
10 * NOTE: This file was auto generated by OpenAPI Generator (https://openapi-generator.tech). DO NOT EDIT.
11 */
12
13#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
14pub struct ReadAuthorizationModelsResponse {
15    #[serde(
16        rename = "authorization_models",
17        skip_serializing_if = "Option::is_none"
18    )]
19    pub authorization_models: Option<Vec<crate::models::AuthorizationModel>>,
20    #[serde(rename = "continuation_token", skip_serializing_if = "Option::is_none")]
21    pub continuation_token: Option<String>,
22}
23
24impl ReadAuthorizationModelsResponse {
25    pub fn new() -> ReadAuthorizationModelsResponse {
26        ReadAuthorizationModelsResponse {
27            authorization_models: None,
28            continuation_token: None,
29        }
30    }
31}