octopush/crates/gitea_raw_client/src/models/repository_meta.rs
Kasper Juul Hermansen 991861db99
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
Rewrite rust (#38)
Co-authored-by: kjuulh <contact@kjuulh.io>
Reviewed-on: #38
2022-11-27 11:21:35 +00:00

40 lines
1006 B
Rust

/*
* Gitea API.
*
* This documentation describes the Gitea API.
*
* The version of the OpenAPI document: 1.17.3
*
* Generated by: https://openapi-generator.tech
*/
/// RepositoryMeta : RepositoryMeta basic repository information
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct RepositoryMeta {
#[serde(rename = "full_name", skip_serializing_if = "Option::is_none")]
pub full_name: Option<String>,
#[serde(rename = "id", skip_serializing_if = "Option::is_none")]
pub id: Option<i64>,
#[serde(rename = "name", skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
#[serde(rename = "owner", skip_serializing_if = "Option::is_none")]
pub owner: Option<String>,
}
impl RepositoryMeta {
/// RepositoryMeta basic repository information
pub fn new() -> RepositoryMeta {
RepositoryMeta {
full_name: None,
id: None,
name: None,
owner: None,
}
}
}