#[non_exhaustive]pub struct ListProtectionsOutput {
pub protections: Option<Vec<Protection>>,
pub next_token: Option<String>,
/* private fields */
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.protections: Option<Vec<Protection>>
The array of enabled Protection
objects.
next_token: Option<String>
When you request a list of objects from Shield Advanced, if the response does not include all of the remaining available objects, Shield Advanced includes a NextToken
value in the response. You can retrieve the next batch of objects by requesting the list again and providing the token that was returned by the prior call in your request.
You can indicate the maximum number of objects that you want Shield Advanced to return for a single call with the MaxResults
setting. Shield Advanced will not return more than MaxResults
objects, but may return fewer, even if more objects are still available.
Whenever more objects remain that Shield Advanced has not yet returned to you, the response will include a NextToken
value.
Implementations§
source§impl ListProtectionsOutput
impl ListProtectionsOutput
sourcepub fn protections(&self) -> &[Protection]
pub fn protections(&self) -> &[Protection]
The array of enabled Protection
objects.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .protections.is_none()
.
sourcepub fn next_token(&self) -> Option<&str>
pub fn next_token(&self) -> Option<&str>
When you request a list of objects from Shield Advanced, if the response does not include all of the remaining available objects, Shield Advanced includes a NextToken
value in the response. You can retrieve the next batch of objects by requesting the list again and providing the token that was returned by the prior call in your request.
You can indicate the maximum number of objects that you want Shield Advanced to return for a single call with the MaxResults
setting. Shield Advanced will not return more than MaxResults
objects, but may return fewer, even if more objects are still available.
Whenever more objects remain that Shield Advanced has not yet returned to you, the response will include a NextToken
value.
source§impl ListProtectionsOutput
impl ListProtectionsOutput
sourcepub fn builder() -> ListProtectionsOutputBuilder
pub fn builder() -> ListProtectionsOutputBuilder
Creates a new builder-style object to manufacture ListProtectionsOutput
.
Trait Implementations§
source§impl Clone for ListProtectionsOutput
impl Clone for ListProtectionsOutput
source§fn clone(&self) -> ListProtectionsOutput
fn clone(&self) -> ListProtectionsOutput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ListProtectionsOutput
impl Debug for ListProtectionsOutput
source§impl PartialEq for ListProtectionsOutput
impl PartialEq for ListProtectionsOutput
source§impl RequestId for ListProtectionsOutput
impl RequestId for ListProtectionsOutput
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.impl StructuralPartialEq for ListProtectionsOutput
Auto Trait Implementations§
impl Freeze for ListProtectionsOutput
impl RefUnwindSafe for ListProtectionsOutput
impl Send for ListProtectionsOutput
impl Sync for ListProtectionsOutput
impl Unpin for ListProtectionsOutput
impl UnwindSafe for ListProtectionsOutput
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