/*
* Artifact Keeper API
*
* Enterprise artifact registry supporting 45+ package formats.
*
* The version of the OpenAPI document: 1.2.1
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
/// SmtpTestRequest : Request body for the SMTP test endpoint.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct SmtpTestRequest {
/// Recipient email address for the test message. Accepts `recipient` as an alias for backward compatibility with Web UI versions <= 1.1.3, which send `{\"recipient\": \"...\"}`.
#[serde(rename = "to")]
pub to: String,
}
impl SmtpTestRequest {
/// Request body for the SMTP test endpoint.
pub fn new(to: String) -> SmtpTestRequest {
SmtpTestRequest {
to,
}
}
}