/* * Gitea API. * * This documentation describes the Gitea API. * * The version of the OpenAPI document: 1.17.3 * * Generated by: https://openapi-generator.tech */ /// GpgKey : GPGKey a user GPG key to sign commit and tag in repository #[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)] pub struct GpgKey { #[serde(rename = "can_certify", skip_serializing_if = "Option::is_none")] pub can_certify: Option, #[serde(rename = "can_encrypt_comms", skip_serializing_if = "Option::is_none")] pub can_encrypt_comms: Option, #[serde(rename = "can_encrypt_storage", skip_serializing_if = "Option::is_none")] pub can_encrypt_storage: Option, #[serde(rename = "can_sign", skip_serializing_if = "Option::is_none")] pub can_sign: Option, #[serde(rename = "created_at", skip_serializing_if = "Option::is_none")] pub created_at: Option, #[serde(rename = "emails", skip_serializing_if = "Option::is_none")] pub emails: Option>, #[serde(rename = "expires_at", skip_serializing_if = "Option::is_none")] pub expires_at: Option, #[serde(rename = "id", skip_serializing_if = "Option::is_none")] pub id: Option, #[serde(rename = "key_id", skip_serializing_if = "Option::is_none")] pub key_id: Option, #[serde(rename = "primary_key_id", skip_serializing_if = "Option::is_none")] pub primary_key_id: Option, #[serde(rename = "public_key", skip_serializing_if = "Option::is_none")] pub public_key: Option, #[serde(rename = "subkeys", skip_serializing_if = "Option::is_none")] pub subkeys: Option>, #[serde(rename = "verified", skip_serializing_if = "Option::is_none")] pub verified: Option, } impl GpgKey { /// GPGKey a user GPG key to sign commit and tag in repository pub fn new() -> GpgKey { GpgKey { can_certify: None, can_encrypt_comms: None, can_encrypt_storage: None, can_sign: None, created_at: None, emails: None, expires_at: None, id: None, key_id: None, primary_key_id: None, public_key: None, subkeys: None, verified: None, } } }