add serde default attribute for ResolverOpts
This commit is contained in:
parent
653fb7b53b
commit
651b8dae02
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,4 +1,5 @@
|
||||
.vscode/
|
||||
.idea/
|
||||
|
||||
*.swp
|
||||
|
||||
|
@ -499,6 +499,7 @@ impl Default for LookupIpStrategy {
|
||||
#[derive(Debug, Clone, Copy, Eq, PartialEq)]
|
||||
#[cfg_attr(feature = "serde-config", derive(Serialize, Deserialize))]
|
||||
#[allow(dead_code)] // TODO: remove after all params are supported
|
||||
#[serde(default)]
|
||||
pub struct ResolverOpts {
|
||||
/// Sets the number of dots that must appear (unless it's a final dot representing the root)
|
||||
/// that must appear before a query is assumed to include the TLD. The default is one, which
|
||||
|
Loading…
Reference in New Issue
Block a user