Skip to main content

Mountain/Binary/Build/DnsCommands/
DnsResolutionResult.rs

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