Struct aws_sdk_shield::types::Contributor
source · #[non_exhaustive]pub struct Contributor {
pub name: Option<String>,
pub value: i64,
}
Expand description
A contributor to the attack and their contribution.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.name: Option<String>
The name of the contributor. The type of name that you'll find here depends on the AttackPropertyIdentifier
setting in the AttackProperty
where this contributor is defined. For example, if the AttackPropertyIdentifier
is SOURCE_COUNTRY
, the Name
could be United States
.
value: i64
The contribution of this contributor expressed in Protection
units. For example 10,000
.
Implementations§
source§impl Contributor
impl Contributor
sourcepub fn name(&self) -> Option<&str>
pub fn name(&self) -> Option<&str>
The name of the contributor. The type of name that you'll find here depends on the AttackPropertyIdentifier
setting in the AttackProperty
where this contributor is defined. For example, if the AttackPropertyIdentifier
is SOURCE_COUNTRY
, the Name
could be United States
.
source§impl Contributor
impl Contributor
sourcepub fn builder() -> ContributorBuilder
pub fn builder() -> ContributorBuilder
Creates a new builder-style object to manufacture Contributor
.
Trait Implementations§
source§impl Clone for Contributor
impl Clone for Contributor
source§fn clone(&self) -> Contributor
fn clone(&self) -> Contributor
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 Contributor
impl Debug for Contributor
source§impl PartialEq<Contributor> for Contributor
impl PartialEq<Contributor> for Contributor
source§fn eq(&self, other: &Contributor) -> bool
fn eq(&self, other: &Contributor) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for Contributor
Auto Trait Implementations§
impl RefUnwindSafe for Contributor
impl Send for Contributor
impl Sync for Contributor
impl Unpin for Contributor
impl UnwindSafe for Contributor
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