use serde::{Deserialize, Serialize};

#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct Smtp {
    #[serde(flatten)]
    pub event_fields: super::EventFields,
    #[serde(rename = "smtp")]
    pub info: SmtpInfo,
}

#[derive(Clone, Debug, Deserialize, Serialize)]
pub struct SmtpInfo {
    pub helo: String,
    pub mail_from: String,
    pub rcpt_to: Vec<String>,
}
