#[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§fn eq(&self, other: &ListProtectionsOutput) -> bool
fn eq(&self, other: &ListProtectionsOutput) -> bool
self
and other
values to be equal, and is used
by ==
.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.