gitea_rs/models/
create_push_mirror_option.rs

1/*
2 * Gitea API.
3 *
4 * This documentation describes the Gitea API.
5 *
6 * The version of the OpenAPI document: 1.19.0
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11
12
13
14#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
15pub struct CreatePushMirrorOption {
16    #[serde(rename = "interval", skip_serializing_if = "Option::is_none")]
17    pub interval: Option<String>,
18    #[serde(rename = "remote_address", skip_serializing_if = "Option::is_none")]
19    pub remote_address: Option<String>,
20    #[serde(rename = "remote_password", skip_serializing_if = "Option::is_none")]
21    pub remote_password: Option<String>,
22    #[serde(rename = "remote_username", skip_serializing_if = "Option::is_none")]
23    pub remote_username: Option<String>,
24    #[serde(rename = "sync_on_commit", skip_serializing_if = "Option::is_none")]
25    pub sync_on_commit: Option<bool>,
26}
27
28impl CreatePushMirrorOption {
29    pub fn new() -> CreatePushMirrorOption {
30        CreatePushMirrorOption {
31            interval: None,
32            remote_address: None,
33            remote_password: None,
34            remote_username: None,
35            sync_on_commit: None,
36        }
37    }
38}
39
40