54 lines
1.6 KiB
Rust
54 lines
1.6 KiB
Rust
|
/*
|
||
|
* Gitea API
|
||
|
*
|
||
|
* This documentation describes the Gitea API.
|
||
|
*
|
||
|
* The version of the OpenAPI document: 1.22.1
|
||
|
*
|
||
|
* Generated by: https://openapi-generator.tech
|
||
|
*/
|
||
|
|
||
|
use crate::models;
|
||
|
use serde::{Deserialize, Serialize};
|
||
|
|
||
|
/// DeployKey : DeployKey a deploy key
|
||
|
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
|
||
|
pub struct DeployKey {
|
||
|
#[serde(rename = "created_at", skip_serializing_if = "Option::is_none")]
|
||
|
pub created_at: Option<String>,
|
||
|
#[serde(rename = "fingerprint", skip_serializing_if = "Option::is_none")]
|
||
|
pub fingerprint: Option<String>,
|
||
|
#[serde(rename = "id", skip_serializing_if = "Option::is_none")]
|
||
|
pub id: Option<i64>,
|
||
|
#[serde(rename = "key", skip_serializing_if = "Option::is_none")]
|
||
|
pub key: Option<String>,
|
||
|
#[serde(rename = "key_id", skip_serializing_if = "Option::is_none")]
|
||
|
pub key_id: Option<i64>,
|
||
|
#[serde(rename = "read_only", skip_serializing_if = "Option::is_none")]
|
||
|
pub read_only: Option<bool>,
|
||
|
#[serde(rename = "repository", skip_serializing_if = "Option::is_none")]
|
||
|
pub repository: Option<Box<models::Repository>>,
|
||
|
#[serde(rename = "title", skip_serializing_if = "Option::is_none")]
|
||
|
pub title: Option<String>,
|
||
|
#[serde(rename = "url", skip_serializing_if = "Option::is_none")]
|
||
|
pub url: Option<String>,
|
||
|
}
|
||
|
|
||
|
impl DeployKey {
|
||
|
/// DeployKey a deploy key
|
||
|
pub fn new() -> DeployKey {
|
||
|
DeployKey {
|
||
|
created_at: None,
|
||
|
fingerprint: None,
|
||
|
id: None,
|
||
|
key: None,
|
||
|
key_id: None,
|
||
|
read_only: None,
|
||
|
repository: None,
|
||
|
title: None,
|
||
|
url: None,
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|