1use serde::{Deserialize, Serialize};
2
3#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
5#[serde(default)]
6pub struct EmailCheck {
7 pub email: String,
8 pub status: String,
10 pub reason: Option<String>,
12 pub suggestion: Option<String>,
14 pub domain: String,
15 pub checks: EmailChecks,
16 pub mailbox: String,
18}
19
20#[derive(Debug, Clone, Default, PartialEq, Serialize, Deserialize)]
22#[serde(default, rename_all = "camelCase")]
23pub struct EmailChecks {
24 pub syntax: bool,
25 pub mx: Option<bool>,
27 pub disposable: bool,
28 pub role: bool,
29 pub free_provider: bool,
30}