/*
* 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};
/// NewDomainResponse : Information returned from a successful domain create request
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct NewDomainResponse {
/// A globally unique identifier for a domain
#[serde(rename = "id")]
pub id: String,
#[serde(rename = "apiKey")]
pub api_key: String,
}
impl NewDomainResponse {
/// Information returned from a successful domain create request
pub fn new(id: String, api_key: String) -> NewDomainResponse {
NewDomainResponse {
id,
api_key,
}
}
}