Struct aws_sdk_shield::types::SubResourceSummary
source · #[non_exhaustive]pub struct SubResourceSummary {
pub type: Option<SubResourceType>,
pub id: Option<String>,
pub attack_vectors: Option<Vec<SummarizedAttackVector>>,
pub counters: Option<Vec<SummarizedCounter>>,
}
Expand description
The attack information for the specified SubResource.
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.type: Option<SubResourceType>
The SubResource
type.
id: Option<String>
The unique identifier (ID) of the SubResource
.
attack_vectors: Option<Vec<SummarizedAttackVector>>
The list of attack types and associated counters.
counters: Option<Vec<SummarizedCounter>>
The counters that describe the details of the attack.
Implementations§
source§impl SubResourceSummary
impl SubResourceSummary
sourcepub fn type(&self) -> Option<&SubResourceType>
pub fn type(&self) -> Option<&SubResourceType>
The SubResource
type.
sourcepub fn attack_vectors(&self) -> &[SummarizedAttackVector]
pub fn attack_vectors(&self) -> &[SummarizedAttackVector]
The list of attack types and associated counters.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .attack_vectors.is_none()
.
sourcepub fn counters(&self) -> &[SummarizedCounter]
pub fn counters(&self) -> &[SummarizedCounter]
The counters that describe the details of the attack.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .counters.is_none()
.
source§impl SubResourceSummary
impl SubResourceSummary
sourcepub fn builder() -> SubResourceSummaryBuilder
pub fn builder() -> SubResourceSummaryBuilder
Creates a new builder-style object to manufacture SubResourceSummary
.
Trait Implementations§
source§impl Clone for SubResourceSummary
impl Clone for SubResourceSummary
source§fn clone(&self) -> SubResourceSummary
fn clone(&self) -> SubResourceSummary
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 SubResourceSummary
impl Debug for SubResourceSummary
source§impl PartialEq for SubResourceSummary
impl PartialEq for SubResourceSummary
impl StructuralPartialEq for SubResourceSummary
Auto Trait Implementations§
impl Freeze for SubResourceSummary
impl RefUnwindSafe for SubResourceSummary
impl Send for SubResourceSummary
impl Sync for SubResourceSummary
impl Unpin for SubResourceSummary
impl UnwindSafe for SubResourceSummary
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> 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)
🔬This is a nightly-only experimental API. (
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>
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.