/*
* 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};
/// SmtpTestResponse : Response from the SMTP test endpoint.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct SmtpTestResponse {
/// Human-readable status message.
#[serde(rename = "message")]
pub message: String,
/// Whether the test email was sent successfully.
#[serde(rename = "success")]
pub success: bool,
}
impl SmtpTestResponse {
/// Response from the SMTP test endpoint.
pub fn new(message: String, success: bool) -> SmtpTestResponse {
SmtpTestResponse {
message,
success,
}
}
}