#[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 protocol(self, input: Protocol) -> Self
pub fn protocol(self, input: Protocol) -> Self
The protocols for the Resolver endpoints. DoH-FIPS is applicable for inbound endpoints only.
For an inbound endpoint you can apply the protocols as follows:
-
Do53 and DoH in combination.
-
Do53 and DoH-FIPS in combination.
-
Do53 alone.
-
DoH alone.
-
DoH-FIPS alone.
-
None, which is treated as Do53.
For an outbound endpoint you can apply the protocols as follows:
-
Do53 and DoH in combination.
-
Do53 alone.
-
DoH alone.
-
None, which is treated as Do53.
sourcepub fn set_protocol(self, input: Option<Protocol>) -> Self
pub fn set_protocol(self, input: Option<Protocol>) -> Self
The protocols for the Resolver endpoints. DoH-FIPS is applicable for inbound endpoints only.
For an inbound endpoint you can apply the protocols as follows:
-
Do53 and DoH in combination.
-
Do53 and DoH-FIPS in combination.
-
Do53 alone.
-
DoH alone.
-
DoH-FIPS alone.
-
None, which is treated as Do53.
For an outbound endpoint you can apply the protocols as follows:
-
Do53 and DoH in combination.
-
Do53 alone.
-
DoH alone.
-
None, which is treated as Do53.
sourcepub fn get_protocol(&self) -> &Option<Protocol>
pub fn get_protocol(&self) -> &Option<Protocol>
The protocols for the Resolver endpoints. DoH-FIPS is applicable for inbound endpoints only.
For an inbound endpoint you can apply the protocols as follows:
-
Do53 and DoH in combination.
-
Do53 and DoH-FIPS in combination.
-
Do53 alone.
-
DoH alone.
-
DoH-FIPS alone.
-
None, which is treated as Do53.
For an outbound endpoint you can apply the protocols as follows:
-
Do53 and DoH in combination.
-
Do53 alone.
-
DoH alone.
-
None, which is treated as Do53.
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
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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
source§impl PartialEq for TargetAddressBuilder
impl PartialEq for TargetAddressBuilder
source§fn eq(&self, other: &TargetAddressBuilder) -> bool
fn eq(&self, other: &TargetAddressBuilder) -> bool
self and other values to be equal, and is used
by ==.