Mountain/Binary/Build/DnsCommands/DnsResolutionResult.rs
1#![allow(non_snake_case)]
2
3//! Result envelope from a manual DNS resolution test
4//! (`dns_resolve`). Carries the resolved address list and a
5//! success flag so callers can branch without parsing strings.
6
7use serde::{Deserialize, Serialize};
8
9#[derive(Debug, Clone, Serialize, Deserialize)]
10pub struct DnsResolutionResult {
11 pub domain:String,
12 pub record_type:String,
13 pub addresses:Vec<String>,
14 pub ttl:u32,
15 pub succeeded:bool,
16 pub error:Option<String>,
17}