From 1b5138409f3117084fc0d8bed4c370857f33852f Mon Sep 17 00:00:00 2001 From: Alex Martens Date: Sun, 9 Nov 2025 14:02:00 -0800 Subject: [PATCH] dns: impl PartialEq for DnsContent This is useful for comparing records in dynamic DNS clients. --- cloudflare/src/endpoints/dns/dns.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cloudflare/src/endpoints/dns/dns.rs b/cloudflare/src/endpoints/dns/dns.rs index 66afd829..322670d3 100644 --- a/cloudflare/src/endpoints/dns/dns.rs +++ b/cloudflare/src/endpoints/dns/dns.rs @@ -168,7 +168,7 @@ pub struct Meta {} /// Type of the DNS record, along with the associated value. /// When we add support for other types (LOC/SRV/...), the `meta` field should also probably be encoded /// here as an associated, strongly typed value. -#[derive(Deserialize, Serialize, Clone, Debug)] +#[derive(Deserialize, Serialize, Clone, Debug, PartialEq)] #[serde(tag = "type")] #[allow(clippy::upper_case_acronyms)] pub enum DnsContent {