Skip to main content

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
13	pub record_type:String,
14
15	pub addresses:Vec<String>,
16
17	pub ttl:u32,
18
19	pub succeeded:bool,
20
21	pub error:Option<String>,
22}