antimatter_api 2.0.13

Interact with the Antimatter Cloud API
Documentation
/*
 * Antimatter Public API
 *
 * Interact with the Antimatter Cloud API
 *
 * The version of the OpenAPI document: 2.0.13
 * Contact: support@antimatter.io
 * Generated by: https://openapi-generator.tech
 */

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

use serde_with::serde_as;

#[serde_as]
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct WorkspaceObjectKeychainInfo {
    #[serde(rename = "fingerprint")]
    pub fingerprint: String,
    #[serde_as(as = "serde_with::base64::Base64")]
    #[serde(rename = "content")]
    pub content: Vec<u8>,
}

impl WorkspaceObjectKeychainInfo {
    pub fn new(fingerprint: String, content: Vec<u8>) -> WorkspaceObjectKeychainInfo {
        WorkspaceObjectKeychainInfo {
            fingerprint,
            content,
        }
    }
}