/*
 * Hetzner Cloud API
 *
 * Copied from the official API documentation for the Public Hetzner Cloud.
 *
 * The version of the OpenAPI document: 4b3f595
 *
 * Generated by: https://openapi-generator.tech
 */

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

/// ListSshKeysResponse : Response to GET https://api.hetzner.cloud/v1/ssh_keys
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ListSshKeysResponse {
    #[serde(rename = "meta")]
    pub meta: Box<models::Meta>,
    #[serde(rename = "ssh_keys")]
    pub ssh_keys: Vec<models::SshKey>,
}

impl ListSshKeysResponse {
    /// Response to GET https://api.hetzner.cloud/v1/ssh_keys
    pub fn new(meta: models::Meta, ssh_keys: Vec<models::SshKey>) -> ListSshKeysResponse {
        ListSshKeysResponse {
            meta: Box::new(meta),
            ssh_keys,
        }
    }
}
