Skip to main content

DevelopmentNodeEnvironment_MicrosoftVSCodeDependency_22NodeVersion_Bundle_Clean_Debug_ElectronProfile_EsbuildCompiler_Mountain/Binary/Build/DnsCommands/
DnsResolutionResult.rs

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