#[non_exhaustive]pub struct TargetAddressBuilder { /* private fields */ }
Expand description
A builder for TargetAddress
.
Implementations§
source§impl TargetAddressBuilder
impl TargetAddressBuilder
sourcepub fn ip(self, input: impl Into<String>) -> Self
pub fn ip(self, input: impl Into<String>) -> Self
One IPv4 address that you want to forward DNS queries to.
sourcepub fn set_ip(self, input: Option<String>) -> Self
pub fn set_ip(self, input: Option<String>) -> Self
One IPv4 address that you want to forward DNS queries to.
sourcepub fn get_ip(&self) -> &Option<String>
pub fn get_ip(&self) -> &Option<String>
One IPv4 address that you want to forward DNS queries to.
sourcepub fn set_port(self, input: Option<i32>) -> Self
pub fn set_port(self, input: Option<i32>) -> Self
The port at Ip
that you want to forward DNS queries to.
sourcepub fn ipv6(self, input: impl Into<String>) -> Self
pub fn ipv6(self, input: impl Into<String>) -> Self
One IPv6 address that you want to forward DNS queries to.
sourcepub fn set_ipv6(self, input: Option<String>) -> Self
pub fn set_ipv6(self, input: Option<String>) -> Self
One IPv6 address that you want to forward DNS queries to.
sourcepub fn get_ipv6(&self) -> &Option<String>
pub fn get_ipv6(&self) -> &Option<String>
One IPv6 address that you want to forward DNS queries to.
sourcepub fn build(self) -> TargetAddress
pub fn build(self) -> TargetAddress
Consumes the builder and constructs a TargetAddress
.
Trait Implementations§
source§impl Clone for TargetAddressBuilder
impl Clone for TargetAddressBuilder
source§fn clone(&self) -> TargetAddressBuilder
fn clone(&self) -> TargetAddressBuilder
Returns a copy of the value. Read more
1.0.0 · 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 TargetAddressBuilder
impl Debug for TargetAddressBuilder
source§impl Default for TargetAddressBuilder
impl Default for TargetAddressBuilder
source§fn default() -> TargetAddressBuilder
fn default() -> TargetAddressBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for TargetAddressBuilder
impl PartialEq for TargetAddressBuilder
source§fn eq(&self, other: &TargetAddressBuilder) -> bool
fn eq(&self, other: &TargetAddressBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TargetAddressBuilder
Auto Trait Implementations§
impl RefUnwindSafe for TargetAddressBuilder
impl Send for TargetAddressBuilder
impl Sync for TargetAddressBuilder
impl Unpin for TargetAddressBuilder
impl UnwindSafe for TargetAddressBuilder
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Creates a shared type from an unshared type.