Struct aws_sdk_wafv2::types::ApiKeySummary
source · #[non_exhaustive]pub struct ApiKeySummary {
pub token_domains: Option<Vec<String>>,
pub api_key: Option<String>,
pub creation_timestamp: Option<DateTime>,
pub version: i32,
}
Expand description
Information for a single API key.
API keys are required for the integration of the CAPTCHA API in your JavaScript client applications. The API lets you customize the placement and characteristics of the CAPTCHA puzzle for your end users. For more information about the CAPTCHA JavaScript integration, see WAF client application integration in the WAF Developer Guide.
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.token_domains: Option<Vec<String>>
The token domains that are defined in this API key.
api_key: Option<String>
The generated, encrypted API key. You can copy this for use in your JavaScript CAPTCHA integration.
creation_timestamp: Option<DateTime>
The date and time that the key was created.
version: i32
Internal value used by WAF to manage the key.
Implementations§
source§impl ApiKeySummary
impl ApiKeySummary
sourcepub fn token_domains(&self) -> &[String]
pub fn token_domains(&self) -> &[String]
The token domains that are defined in this API key.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .token_domains.is_none()
.
sourcepub fn api_key(&self) -> Option<&str>
pub fn api_key(&self) -> Option<&str>
The generated, encrypted API key. You can copy this for use in your JavaScript CAPTCHA integration.
sourcepub fn creation_timestamp(&self) -> Option<&DateTime>
pub fn creation_timestamp(&self) -> Option<&DateTime>
The date and time that the key was created.
source§impl ApiKeySummary
impl ApiKeySummary
sourcepub fn builder() -> ApiKeySummaryBuilder
pub fn builder() -> ApiKeySummaryBuilder
Creates a new builder-style object to manufacture ApiKeySummary
.
Trait Implementations§
source§impl Clone for ApiKeySummary
impl Clone for ApiKeySummary
source§fn clone(&self) -> ApiKeySummary
fn clone(&self) -> ApiKeySummary
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ApiKeySummary
impl Debug for ApiKeySummary
source§impl PartialEq for ApiKeySummary
impl PartialEq for ApiKeySummary
source§fn eq(&self, other: &ApiKeySummary) -> bool
fn eq(&self, other: &ApiKeySummary) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ApiKeySummary
Auto Trait Implementations§
impl Freeze for ApiKeySummary
impl RefUnwindSafe for ApiKeySummary
impl Send for ApiKeySummary
impl Sync for ApiKeySummary
impl Unpin for ApiKeySummary
impl UnwindSafe for ApiKeySummary
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> 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