hanzo-client 8.5.156

Generated client for the Hanzo API — every service, one crate.
Documentation
/*
 * Hanzo Cloud API
 *
 * The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator's admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
 *
 * The version of the OpenAPI document: v1
 * 
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct KeyView {
    /// CreatedAt is RFC 3339 UTC.
    #[serde(rename = "createdAt", skip_serializing_if = "Option::is_none")]
    pub created_at: Option<String>,
    /// Fingerprint is the key's SHA256 fingerprint (\"SHA256:…\"), globally unique and the handle SSH auth resolves a presented key by.
    #[serde(rename = "fingerprint", skip_serializing_if = "Option::is_none")]
    pub fingerprint: Option<String>,
    /// ID is the key's identifier (\"gitkey_…\"), the handle to delete it by.
    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
    pub id: Option<String>,
    /// PublicKey is the canonical OpenSSH authorized-key line as stored.
    #[serde(rename = "publicKey", skip_serializing_if = "Option::is_none")]
    pub public_key: Option<String>,
    /// Title is the key's label — the caller's, or the comment on the key line.
    #[serde(rename = "title", skip_serializing_if = "Option::is_none")]
    pub title: Option<String>,
}

impl KeyView {
    pub fn new() -> KeyView {
        KeyView {
            created_at: None,
            fingerprint: None,
            id: None,
            public_key: None,
            title: None,
        }
    }
}