gitea_client/models/
general_api_settings.rs

1/*
2 * Gitea API
3 *
4 * This documentation describes the Gitea API.
5 *
6 * The version of the OpenAPI document: 1.22.1
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// GeneralApiSettings : GeneralAPISettings contains global api settings exposed by it
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct GeneralApiSettings {
17    #[serde(rename = "default_git_trees_per_page", skip_serializing_if = "Option::is_none")]
18    pub default_git_trees_per_page: Option<i64>,
19    #[serde(rename = "default_max_blob_size", skip_serializing_if = "Option::is_none")]
20    pub default_max_blob_size: Option<i64>,
21    #[serde(rename = "default_paging_num", skip_serializing_if = "Option::is_none")]
22    pub default_paging_num: Option<i64>,
23    #[serde(rename = "max_response_items", skip_serializing_if = "Option::is_none")]
24    pub max_response_items: Option<i64>,
25}
26
27impl GeneralApiSettings {
28    /// GeneralAPISettings contains global api settings exposed by it
29    pub fn new() -> GeneralApiSettings {
30        GeneralApiSettings {
31            default_git_trees_per_page: None,
32            default_max_blob_size: None,
33            default_paging_num: None,
34            max_response_items: None,
35        }
36    }
37}
38