#[non_exhaustive]pub struct AttackStatisticsDataItemBuilder { /* private fields */ }
Expand description
A builder for AttackStatisticsDataItem
.
Implementations§
source§impl AttackStatisticsDataItemBuilder
impl AttackStatisticsDataItemBuilder
sourcepub fn attack_volume(self, input: AttackVolume) -> Self
pub fn attack_volume(self, input: AttackVolume) -> Self
Information about the volume of attacks during the time period. If the accompanying AttackCount
is zero, this setting might be empty.
sourcepub fn set_attack_volume(self, input: Option<AttackVolume>) -> Self
pub fn set_attack_volume(self, input: Option<AttackVolume>) -> Self
Information about the volume of attacks during the time period. If the accompanying AttackCount
is zero, this setting might be empty.
sourcepub fn get_attack_volume(&self) -> &Option<AttackVolume>
pub fn get_attack_volume(&self) -> &Option<AttackVolume>
Information about the volume of attacks during the time period. If the accompanying AttackCount
is zero, this setting might be empty.
sourcepub fn attack_count(self, input: i64) -> Self
pub fn attack_count(self, input: i64) -> Self
The number of attacks detected during the time period. This is always present, but might be zero.
This field is required.sourcepub fn set_attack_count(self, input: Option<i64>) -> Self
pub fn set_attack_count(self, input: Option<i64>) -> Self
The number of attacks detected during the time period. This is always present, but might be zero.
sourcepub fn get_attack_count(&self) -> &Option<i64>
pub fn get_attack_count(&self) -> &Option<i64>
The number of attacks detected during the time period. This is always present, but might be zero.
sourcepub fn build(self) -> AttackStatisticsDataItem
pub fn build(self) -> AttackStatisticsDataItem
Consumes the builder and constructs a AttackStatisticsDataItem
.
Trait Implementations§
source§impl Clone for AttackStatisticsDataItemBuilder
impl Clone for AttackStatisticsDataItemBuilder
source§fn clone(&self) -> AttackStatisticsDataItemBuilder
fn clone(&self) -> AttackStatisticsDataItemBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for AttackStatisticsDataItemBuilder
impl Default for AttackStatisticsDataItemBuilder
source§fn default() -> AttackStatisticsDataItemBuilder
fn default() -> AttackStatisticsDataItemBuilder
source§impl PartialEq for AttackStatisticsDataItemBuilder
impl PartialEq for AttackStatisticsDataItemBuilder
source§fn eq(&self, other: &AttackStatisticsDataItemBuilder) -> bool
fn eq(&self, other: &AttackStatisticsDataItemBuilder) -> bool
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for AttackStatisticsDataItemBuilder
Auto Trait Implementations§
impl Freeze for AttackStatisticsDataItemBuilder
impl RefUnwindSafe for AttackStatisticsDataItemBuilder
impl Send for AttackStatisticsDataItemBuilder
impl Sync for AttackStatisticsDataItemBuilder
impl Unpin for AttackStatisticsDataItemBuilder
impl UnwindSafe for AttackStatisticsDataItemBuilder
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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>
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>
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 more