#[non_exhaustive]pub struct DnsRequestActionBuilder { /* private fields */ }
Expand description
A builder for DnsRequestAction
.
Implementations§
source§impl DnsRequestActionBuilder
impl DnsRequestActionBuilder
sourcepub fn domain(self, input: impl Into<String>) -> Self
pub fn domain(self, input: impl Into<String>) -> Self
The DNS domain that is associated with the DNS request.
Length Constraints: 128.
sourcepub fn set_domain(self, input: Option<String>) -> Self
pub fn set_domain(self, input: Option<String>) -> Self
The DNS domain that is associated with the DNS request.
Length Constraints: 128.
sourcepub fn get_domain(&self) -> &Option<String>
pub fn get_domain(&self) -> &Option<String>
The DNS domain that is associated with the DNS request.
Length Constraints: 128.
sourcepub fn protocol(self, input: impl Into<String>) -> Self
pub fn protocol(self, input: impl Into<String>) -> Self
The protocol that was used for the DNS request.
Length Constraints: Minimum length of 1. Maximum length of 64.
sourcepub fn set_protocol(self, input: Option<String>) -> Self
pub fn set_protocol(self, input: Option<String>) -> Self
The protocol that was used for the DNS request.
Length Constraints: Minimum length of 1. Maximum length of 64.
sourcepub fn get_protocol(&self) -> &Option<String>
pub fn get_protocol(&self) -> &Option<String>
The protocol that was used for the DNS request.
Length Constraints: Minimum length of 1. Maximum length of 64.
sourcepub fn set_blocked(self, input: Option<bool>) -> Self
pub fn set_blocked(self, input: Option<bool>) -> Self
Indicates whether the DNS request was blocked.
sourcepub fn get_blocked(&self) -> &Option<bool>
pub fn get_blocked(&self) -> &Option<bool>
Indicates whether the DNS request was blocked.
sourcepub fn build(self) -> DnsRequestAction
pub fn build(self) -> DnsRequestAction
Consumes the builder and constructs a DnsRequestAction
.
Trait Implementations§
source§impl Clone for DnsRequestActionBuilder
impl Clone for DnsRequestActionBuilder
source§fn clone(&self) -> DnsRequestActionBuilder
fn clone(&self) -> DnsRequestActionBuilder
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 DnsRequestActionBuilder
impl Debug for DnsRequestActionBuilder
source§impl Default for DnsRequestActionBuilder
impl Default for DnsRequestActionBuilder
source§fn default() -> DnsRequestActionBuilder
fn default() -> DnsRequestActionBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for DnsRequestActionBuilder
impl PartialEq for DnsRequestActionBuilder
source§fn eq(&self, other: &DnsRequestActionBuilder) -> bool
fn eq(&self, other: &DnsRequestActionBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DnsRequestActionBuilder
Auto Trait Implementations§
impl Freeze for DnsRequestActionBuilder
impl RefUnwindSafe for DnsRequestActionBuilder
impl Send for DnsRequestActionBuilder
impl Sync for DnsRequestActionBuilder
impl Unpin for DnsRequestActionBuilder
impl UnwindSafe for DnsRequestActionBuilder
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>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.