pub struct DnsConfigPatch { /* private fields */ }Expand description
A sparse, presence-aware patch for DnsConfig.
Implementations§
Source§impl DnsConfigPatch
impl DnsConfigPatch
Sourcepub fn rebind_protection(self, value: bool) -> Self
pub fn rebind_protection(self, value: bool) -> Self
Set the rebind_protection field in this patch.
Sourcepub fn nameservers(self, value: Vec<String>) -> Self
pub fn nameservers(self, value: Vec<String>) -> Self
Set the nameservers field in this patch.
Sourcepub fn query_timeout_ms(self, value: u64) -> Self
pub fn query_timeout_ms(self, value: u64) -> Self
Set the query_timeout_ms field in this patch.
Sourcepub fn clear_rebind_protection(self) -> Self
pub fn clear_rebind_protection(self) -> Self
Remove rebind_protection from this patch so applying it leaves the target unchanged.
Sourcepub fn clear_nameservers(self) -> Self
pub fn clear_nameservers(self) -> Self
Remove nameservers from this patch so applying it leaves the target unchanged.
Sourcepub fn clear_query_timeout_ms(self) -> Self
pub fn clear_query_timeout_ms(self) -> Self
Remove query_timeout_ms from this patch so applying it leaves the target unchanged.
Sourcepub fn overlay(self, higher: Self) -> Self
pub fn overlay(self, higher: Self) -> Self
Overlay a higher-precedence patch using each field’s declared strategy.
Sourcepub fn from_present_fields(value: DnsConfig) -> Self
pub fn from_present_fields(value: DnsConfig) -> Self
Convert non-null fields into a changeset, treating Option::None as absent.
Trait Implementations§
Source§impl Clone for DnsConfigPatch
impl Clone for DnsConfigPatch
Source§fn clone(&self) -> DnsConfigPatch
fn clone(&self) -> DnsConfigPatch
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DnsConfigPatch
impl Debug for DnsConfigPatch
Source§impl Default for DnsConfigPatch
impl Default for DnsConfigPatch
Source§fn default() -> DnsConfigPatch
fn default() -> DnsConfigPatch
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DnsConfigPatch
impl RefUnwindSafe for DnsConfigPatch
impl Send for DnsConfigPatch
impl Sync for DnsConfigPatch
impl Unpin for DnsConfigPatch
impl UnsafeUnpin for DnsConfigPatch
impl UnwindSafe for DnsConfigPatch
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more