/* * Gitea API. * * This documentation describes the Gitea API. * * The version of the OpenAPI document: 1.17.3 * * Generated by: https://openapi-generator.tech */ /// User : User represents a user #[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] pub struct User { /// Is user active #[serde(rename = "active", skip_serializing_if = "Option::is_none")] pub active: Option, /// URL to the user's avatar #[serde(rename = "avatar_url", skip_serializing_if = "Option::is_none")] pub avatar_url: Option, #[serde(rename = "created", skip_serializing_if = "Option::is_none")] pub created: Option, /// the user's description #[serde(rename = "description", skip_serializing_if = "Option::is_none")] pub description: Option, #[serde(rename = "email", skip_serializing_if = "Option::is_none")] pub email: Option, /// user counts #[serde(rename = "followers_count", skip_serializing_if = "Option::is_none")] pub followers_count: Option, #[serde(rename = "following_count", skip_serializing_if = "Option::is_none")] pub following_count: Option, /// the user's full name #[serde(rename = "full_name", skip_serializing_if = "Option::is_none")] pub full_name: Option, /// the user's id #[serde(rename = "id", skip_serializing_if = "Option::is_none")] pub id: Option, /// Is the user an administrator #[serde(rename = "is_admin", skip_serializing_if = "Option::is_none")] pub is_admin: Option, /// User locale #[serde(rename = "language", skip_serializing_if = "Option::is_none")] pub language: Option, #[serde(rename = "last_login", skip_serializing_if = "Option::is_none")] pub last_login: Option, /// the user's location #[serde(rename = "location", skip_serializing_if = "Option::is_none")] pub location: Option, /// the user's username #[serde(rename = "login", skip_serializing_if = "Option::is_none")] pub login: Option, /// Is user login prohibited #[serde(rename = "prohibit_login", skip_serializing_if = "Option::is_none")] pub prohibit_login: Option, /// Is user restricted #[serde(rename = "restricted", skip_serializing_if = "Option::is_none")] pub restricted: Option, #[serde(rename = "starred_repos_count", skip_serializing_if = "Option::is_none")] pub starred_repos_count: Option, /// User visibility level option: public, limited, private #[serde(rename = "visibility", skip_serializing_if = "Option::is_none")] pub visibility: Option, /// the user's website #[serde(rename = "website", skip_serializing_if = "Option::is_none")] pub website: Option, } impl User { /// User represents a user pub fn new() -> User { User { active: None, avatar_url: None, created: None, description: None, email: None, followers_count: None, following_count: None, full_name: None, id: None, is_admin: None, language: None, last_login: None, location: None, login: None, prohibit_login: None, restricted: None, starred_repos_count: None, visibility: None, website: None, } } }