From 52db8a03e97875f732e65dc5912bf1ca939d89c3 Mon Sep 17 00:00:00 2001 From: Craig Disselkoen Date: Wed, 16 Jul 2025 10:34:46 -0400 Subject: [PATCH 1/5] add catchall feature to resolve #1017 Signed-off-by: Craig Disselkoen --- lambda-events/Cargo.toml | 4 +- lambda-events/src/event/activemq/mod.rs | 20 ++ lambda-events/src/event/alb/mod.rs | 28 ++ lambda-events/src/event/apigw/mod.rs | 204 +++++++++++++ lambda-events/src/event/appsync/mod.rs | 72 +++++ lambda-events/src/event/autoscaling/mod.rs | 6 + .../src/event/bedrock_agent_runtime/mod.rs | 38 +++ lambda-events/src/event/chime_bot/mod.rs | 28 ++ lambda-events/src/event/clientvpn/mod.rs | 16 ++ lambda-events/src/event/cloudformation/mod.rs | 24 ++ .../src/event/cloudformation/provider.rs | 18 ++ .../src/event/cloudwatch_alarms/mod.rs | 78 +++++ .../src/event/cloudwatch_events/cloudtrail.rs | 44 +++ .../src/event/cloudwatch_events/codedeploy.rs | 22 ++ .../event/cloudwatch_events/codepipeline.rs | 28 ++ .../src/event/cloudwatch_events/ec2.rs | 10 + .../src/event/cloudwatch_events/emr.rs | 28 ++ .../src/event/cloudwatch_events/gamelift.rs | 76 +++++ .../src/event/cloudwatch_events/glue.rs | 52 ++++ .../src/event/cloudwatch_events/health.rs | 20 ++ .../src/event/cloudwatch_events/kms.rs | 10 + .../src/event/cloudwatch_events/macie.rs | 110 ++++++++ .../src/event/cloudwatch_events/mod.rs | 8 + .../src/event/cloudwatch_events/opsworks.rs | 28 ++ .../src/event/cloudwatch_events/signin.rs | 26 ++ .../src/event/cloudwatch_events/sms.rs | 10 + .../src/event/cloudwatch_events/ssm.rs | 86 ++++++ .../src/event/cloudwatch_events/tag.rs | 8 + .../event/cloudwatch_events/trustedadvisor.rs | 8 + .../src/event/cloudwatch_logs/mod.rs | 22 ++ lambda-events/src/event/code_commit/mod.rs | 31 ++ lambda-events/src/event/codebuild/mod.rs | 56 ++++ lambda-events/src/event/codedeploy/mod.rs | 22 ++ .../src/event/codepipeline_cloudwatch/mod.rs | 22 ++ .../src/event/codepipeline_job/mod.rs | 70 +++++ lambda-events/src/event/cognito/mod.rs | 267 +++++++++++++++++- lambda-events/src/event/config/mod.rs | 10 + lambda-events/src/event/connect/mod.rs | 32 +++ .../event/documentdb/events/commom_types.rs | 36 +++ .../event/documentdb/events/delete_event.rs | 10 + .../documentdb/events/drop_database_event.rs | 10 + .../src/event/documentdb/events/drop_event.rs | 10 + .../event/documentdb/events/insert_event.rs | 10 + .../documentdb/events/invalidate_event.rs | 10 + .../event/documentdb/events/rename_event.rs | 10 + .../event/documentdb/events/replace_event.rs | 10 + .../event/documentdb/events/update_event.rs | 22 ++ lambda-events/src/event/documentdb/mod.rs | 16 ++ lambda-events/src/event/dynamodb/mod.rs | 40 +++ lambda-events/src/event/ecr_scan/mod.rs | 22 ++ lambda-events/src/event/eventbridge/mod.rs | 8 + lambda-events/src/event/firehose/mod.rs | 38 +++ lambda-events/src/event/iam/mod.rs | 16 ++ lambda-events/src/event/iot/mod.rs | 46 +++ lambda-events/src/event/iot_1_click/mod.rs | 32 +++ lambda-events/src/event/iot_button/mod.rs | 10 + lambda-events/src/event/iot_deprecated/mod.rs | 16 ++ lambda-events/src/event/kafka/mod.rs | 14 + lambda-events/src/event/kinesis/analytics.rs | 28 ++ lambda-events/src/event/kinesis/event.rs | 34 +++ .../src/event/lambda_function_urls/mod.rs | 38 +++ lambda-events/src/event/lex/mod.rs | 56 ++++ lambda-events/src/event/rabbitmq/mod.rs | 18 ++ lambda-events/src/event/s3/batch_job.rs | 34 +++ lambda-events/src/event/s3/event.rs | 44 +++ lambda-events/src/event/s3/object_lambda.rs | 60 ++++ lambda-events/src/event/secretsmanager/mod.rs | 10 + lambda-events/src/event/ses/mod.rs | 64 +++++ lambda-events/src/event/sns/mod.rs | 87 ++++++ lambda-events/src/event/sqs/mod.rs | 68 +++++ lambda-events/src/event/streams/mod.rs | 40 +++ .../example-apigw-request-catch-all.json | 137 +++++++++ lambda-http/Cargo.toml | 1 + lambda-http/src/response.rs | 12 + lambda-integration-tests/Cargo.toml | 3 + lambda-integration-tests/src/authorizer.rs | 6 + lambda-integration-tests/src/helloworld.rs | 2 + 77 files changed, 2765 insertions(+), 5 deletions(-) create mode 100644 lambda-events/src/fixtures/example-apigw-request-catch-all.json diff --git a/lambda-events/Cargo.toml b/lambda-events/Cargo.toml index 481f77ba..d74c8e34 100644 --- a/lambda-events/Cargo.toml +++ b/lambda-events/Cargo.toml @@ -125,5 +125,7 @@ streams = [] documentdb = [] eventbridge = ["chrono", "serde_with"] +catch-all-fields = [] + [package.metadata.docs.rs] -all-features = true \ No newline at end of file +all-features = true diff --git a/lambda-events/src/event/activemq/mod.rs b/lambda-events/src/event/activemq/mod.rs index 89cfda1c..e4d83db3 100644 --- a/lambda-events/src/event/activemq/mod.rs +++ b/lambda-events/src/event/activemq/mod.rs @@ -1,4 +1,6 @@ use serde::{Deserialize, Serialize}; +#[cfg(feature = "catch-all-fields")] +use serde_json::Value; use std::collections::HashMap; use crate::custom_serde::deserialize_lambda_map; @@ -11,6 +13,12 @@ pub struct ActiveMqEvent { #[serde(default)] pub event_source_arn: Option, pub messages: Vec, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Debug, Clone, Eq, PartialEq, Deserialize, Serialize)] @@ -41,6 +49,12 @@ pub struct ActiveMqMessage { #[serde(deserialize_with = "deserialize_lambda_map")] #[serde(default)] pub properties: HashMap, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Debug, Clone, Eq, PartialEq, Deserialize, Serialize)] @@ -48,6 +62,12 @@ pub struct ActiveMqMessage { pub struct ActiveMqDestination { #[serde(default)] pub physical_name: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[cfg(test)] diff --git a/lambda-events/src/event/alb/mod.rs b/lambda-events/src/event/alb/mod.rs index 3b4ce9d5..ba5ac702 100644 --- a/lambda-events/src/event/alb/mod.rs +++ b/lambda-events/src/event/alb/mod.rs @@ -7,6 +7,10 @@ use crate::{ use http::{HeaderMap, Method}; use query_map::QueryMap; use serde::{Deserialize, Serialize}; +#[cfg(feature = "catch-all-fields")] +use serde_json::Value; +#[cfg(feature = "catch-all-fields")] +use std::collections::HashMap; /// `AlbTargetGroupRequest` contains data originating from the ALB Lambda target group integration #[derive(Clone, Debug, Default, Deserialize, PartialEq, Serialize)] @@ -30,6 +34,12 @@ pub struct AlbTargetGroupRequest { #[serde(default, deserialize_with = "deserialize_nullish_boolean")] pub is_base64_encoded: bool, pub body: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `AlbTargetGroupRequestContext` contains the information to identify the load balancer invoking the lambda @@ -37,6 +47,12 @@ pub struct AlbTargetGroupRequest { #[serde(rename_all = "camelCase")] pub struct AlbTargetGroupRequestContext { pub elb: ElbContext, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `ElbContext` contains the information to identify the ARN invoking the lambda @@ -46,6 +62,12 @@ pub struct ElbContext { /// nolint: stylecheck #[serde(default)] pub target_group_arn: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `AlbTargetGroupResponse` configures the response to be returned by the ALB Lambda target group for the request @@ -65,6 +87,12 @@ pub struct AlbTargetGroupResponse { pub body: Option, #[serde(default, deserialize_with = "deserialize_nullish_boolean")] pub is_base64_encoded: bool, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[cfg(test)] diff --git a/lambda-events/src/event/apigw/mod.rs b/lambda-events/src/event/apigw/mod.rs index e0aa1e8c..582a0a6a 100644 --- a/lambda-events/src/event/apigw/mod.rs +++ b/lambda-events/src/event/apigw/mod.rs @@ -47,6 +47,12 @@ pub struct ApiGatewayProxyRequest { pub body: Option, #[serde(default, deserialize_with = "deserialize_nullish_boolean")] pub is_base64_encoded: bool, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `ApiGatewayProxyResponse` configures the response to be returned by API Gateway for the request @@ -64,6 +70,12 @@ pub struct ApiGatewayProxyResponse { pub body: Option, #[serde(default, deserialize_with = "deserialize_nullish_boolean")] pub is_base64_encoded: bool, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `ApiGatewayProxyRequestContext` contains the information to identify the AWS account and resources invoking the @@ -110,6 +122,12 @@ pub struct ApiGatewayProxyRequestContext { #[serde(default)] #[serde(rename = "apiId")] pub apiid: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `ApiGatewayV2httpRequest` contains data coming from the new HTTP API Gateway @@ -160,6 +178,12 @@ pub struct ApiGatewayV2httpRequest { pub body: Option, #[serde(default)] pub is_base64_encoded: bool, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `ApiGatewayV2httpRequestContext` contains the information to identify the AWS account and resources invoking the Lambda function. @@ -192,6 +216,12 @@ pub struct ApiGatewayV2httpRequestContext { pub http: ApiGatewayV2httpRequestContextHttpDescription, #[serde(skip_serializing_if = "Option::is_none")] pub authentication: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `ApiGatewayRequestAuthorizer` contains authorizer information for the request context. @@ -209,6 +239,12 @@ pub struct ApiGatewayRequestAuthorizer { pub fields: HashMap, #[serde(skip_serializing_if = "Option::is_none")] pub iam: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `ApiGatewayRequestAuthorizerJwtDescription` contains JWT authorizer information for the request context. @@ -220,6 +256,12 @@ pub struct ApiGatewayRequestAuthorizerJwtDescription { pub claims: HashMap, #[serde(skip_serializing_if = "Option::is_none")] pub scopes: Option>, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `ApiGatewayRequestAuthorizerIamDescription` contains IAM information for the request context. @@ -240,6 +282,12 @@ pub struct ApiGatewayRequestAuthorizerIamDescription { pub user_arn: Option, #[serde(default)] pub user_id: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `ApiGatewayRequestAuthorizerCognitoIdentity` contains Cognito identity information for the request context. @@ -251,6 +299,12 @@ pub struct ApiGatewayRequestAuthorizerCognitoIdentity { pub identity_id: Option, #[serde(default)] pub identity_pool_id: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `ApiGatewayV2httpRequestContextHttpDescription` contains HTTP information for the request context. @@ -267,6 +321,12 @@ pub struct ApiGatewayV2httpRequestContextHttpDescription { pub source_ip: Option, #[serde(default)] pub user_agent: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `ApiGatewayV2httpResponse` configures the response to be returned by API Gateway V2 for the request @@ -285,6 +345,12 @@ pub struct ApiGatewayV2httpResponse { #[serde(default, deserialize_with = "deserialize_nullish_boolean")] pub is_base64_encoded: bool, pub cookies: Vec, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `ApiGatewayRequestIdentity` contains identity information for the request caller. @@ -318,6 +384,12 @@ pub struct ApiGatewayRequestIdentity { pub user_agent: Option, #[serde(default)] pub user: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `ApiGatewayWebsocketProxyRequest` contains data coming from the API Gateway proxy @@ -357,6 +429,12 @@ pub struct ApiGatewayWebsocketProxyRequest { pub body: Option, #[serde(default, deserialize_with = "deserialize_nullish_boolean")] pub is_base64_encoded: bool, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `ApiGatewayWebsocketProxyRequestContext` contains the information to identify @@ -421,6 +499,12 @@ pub struct ApiGatewayWebsocketProxyRequestContext { pub disconnect_status_code: Option, #[serde(default)] pub disconnect_reason: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `ApiGatewayCustomAuthorizerRequestTypeRequestIdentity` contains identity information for the request caller including certificate information if using mTLS. @@ -435,6 +519,12 @@ pub struct ApiGatewayCustomAuthorizerRequestTypeRequestIdentity { pub source_ip: Option, #[serde(default)] pub client_cert: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `ApiGatewayCustomAuthorizerRequestTypeRequestIdentityClientCert` contains certificate information for the request caller if using mTLS. @@ -452,6 +542,12 @@ pub struct ApiGatewayCustomAuthorizerRequestTypeRequestIdentityClientCert { #[serde(rename = "subjectDN")] pub subject_dn: Option, pub validity: ApiGatewayCustomAuthorizerRequestTypeRequestIdentityClientCertValidity, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `ApiGatewayCustomAuthorizerRequestTypeRequestIdentityClientCertValidity` contains certificate validity information for the request caller if using mTLS. @@ -462,6 +558,12 @@ pub struct ApiGatewayCustomAuthorizerRequestTypeRequestIdentityClientCertValidit pub not_after: Option, #[serde(default)] pub not_before: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `ApiGatewayV2httpRequestContextAuthentication` contains authentication context information for the request caller including client certificate information if using mTLS. @@ -470,6 +572,12 @@ pub struct ApiGatewayCustomAuthorizerRequestTypeRequestIdentityClientCertValidit pub struct ApiGatewayV2httpRequestContextAuthentication { #[serde(default)] pub client_cert: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `ApiGatewayV2httpRequestContextAuthenticationClientCert` contains client certificate information for the request caller if using mTLS. @@ -487,6 +595,12 @@ pub struct ApiGatewayV2httpRequestContextAuthenticationClientCert { #[serde(rename = "subjectDN")] pub subject_dn: Option, pub validity: ApiGatewayV2httpRequestContextAuthenticationClientCertValidity, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `ApiGatewayV2httpRequestContextAuthenticationClientCertValidity` contains client certificate validity information for the request caller if using mTLS. @@ -497,6 +611,12 @@ pub struct ApiGatewayV2httpRequestContextAuthenticationClientCertValidity { pub not_after: Option, #[serde(default)] pub not_before: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -520,6 +640,12 @@ pub struct ApiGatewayV2CustomAuthorizerV1RequestTypeRequestContext { #[serde(default)] #[serde(rename = "apiId")] pub apiid: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -555,6 +681,12 @@ pub struct ApiGatewayV2CustomAuthorizerV1Request { #[serde(default)] pub stage_variables: HashMap, pub request_context: ApiGatewayV2CustomAuthorizerV1RequestTypeRequestContext, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -590,6 +722,12 @@ pub struct ApiGatewayV2CustomAuthorizerV2Request { #[serde(deserialize_with = "deserialize_lambda_map")] #[serde(default)] pub stage_variables: HashMap, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `ApiGatewayCustomAuthorizerContext` represents the expected format of an API Gateway custom authorizer response. @@ -602,6 +740,12 @@ pub struct ApiGatewayCustomAuthorizerContext { pub num_key: Option, #[serde(default, deserialize_with = "deserialize_nullish_boolean")] pub bool_key: bool, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `ApiGatewayCustomAuthorizerRequestTypeRequestContext` represents the expected format of an API Gateway custom authorizer response. @@ -630,6 +774,12 @@ pub struct ApiGatewayCustomAuthorizerRequestTypeRequestContext { #[serde(default)] #[serde(rename = "apiId")] pub apiid: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `ApiGatewayCustomAuthorizerRequest` contains data coming in to a custom API Gateway authorizer function. @@ -643,6 +793,12 @@ pub struct ApiGatewayCustomAuthorizerRequest { /// nolint: stylecheck #[serde(default)] pub method_arn: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `ApiGatewayCustomAuthorizerRequestTypeRequest` contains data coming in to a custom API Gateway authorizer function. @@ -680,6 +836,12 @@ pub struct ApiGatewayCustomAuthorizerRequestTypeRequest { #[serde(default)] pub stage_variables: HashMap, pub request_context: ApiGatewayCustomAuthorizerRequestTypeRequestContext, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `ApiGatewayCustomAuthorizerResponse` represents the expected format of an API Gateway authorization response. @@ -696,6 +858,12 @@ where #[serde(bound = "", default)] pub context: T1, pub usage_identifier_key: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `ApiGatewayV2CustomAuthorizerSimpleResponse` represents the simple format of an API Gateway V2 authorization response. @@ -709,6 +877,12 @@ where pub is_authorized: bool, #[serde(bound = "", default)] pub context: T1, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -723,6 +897,12 @@ where pub policy_document: ApiGatewayCustomAuthorizerPolicy, #[serde(bound = "", default)] pub context: T1, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `ApiGatewayCustomAuthorizerPolicy` represents an IAM policy @@ -732,6 +912,12 @@ pub struct ApiGatewayCustomAuthorizerPolicy { #[serde(default)] pub version: Option, pub statement: Vec, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } fn default_http_method() -> Method { @@ -876,6 +1062,24 @@ mod test { assert!(output.contains(r#""headername":"headerValue2""#)); } + #[test] + #[cfg(all(feature = "apigw", feature = "catch-all-fields"))] + fn example_apigw_request_catch_all() { + use serde_json::json; + + let data = include_bytes!("../../fixtures/example-apigw-request-catch-all.json"); + let parsed: ApiGatewayProxyRequest = serde_json::from_slice(data).unwrap(); + let output: String = serde_json::to_string(&parsed).unwrap(); + let reparsed: ApiGatewayProxyRequest = serde_json::from_slice(output.as_bytes()).unwrap(); + assert_eq!(parsed, reparsed); + + assert_eq!(parsed.other.get("otherField"), Some(&json!("foobar"))); + assert_eq!( + parsed.request_context.identity.other.get("otherField"), + Some(&json!(2345)) + ); + } + #[test] #[cfg(feature = "apigw")] fn example_apigw_restapi_openapi_request() { diff --git a/lambda-events/src/event/appsync/mod.rs b/lambda-events/src/event/appsync/mod.rs index 4aa62e5b..f8db1c6b 100644 --- a/lambda-events/src/event/appsync/mod.rs +++ b/lambda-events/src/event/appsync/mod.rs @@ -17,6 +17,12 @@ where pub operation: AppSyncOperation, #[serde(bound = "")] pub payload: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `AppSyncIamIdentity` contains information about the caller authed via IAM. @@ -38,6 +44,12 @@ pub struct AppSyncIamIdentity { pub username: Option, #[serde(default)] pub user_arn: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `AppSyncCognitoIdentity` contains information about the caller authed via Cognito. @@ -61,6 +73,12 @@ where pub source_ip: Vec, #[serde(default)] pub default_auth_strategy: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } pub type AppSyncOperation = String; @@ -72,6 +90,12 @@ pub struct AppSyncLambdaAuthorizerRequest { #[serde(default)] pub authorization_token: Option, pub request_context: AppSyncLambdaAuthorizerRequestContext, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `AppSyncLambdaAuthorizerRequestContext` contains the parameters of the AppSync invocation which triggered @@ -98,6 +122,12 @@ where #[serde(default)] #[serde(bound = "")] pub variables: HashMap, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `AppSyncLambdaAuthorizerResponse` represents the expected format of an authorization response to AppSync. @@ -115,6 +145,12 @@ where pub resolver_context: HashMap, pub denied_fields: Option>, pub ttl_override: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `AppSyncDirectResolverEvent` represents the default payload structure sent by AWS AppSync @@ -147,6 +183,12 @@ where pub prev: Option, #[serde(bound = "")] pub stash: TStash, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `AppSyncRequest` contains request-related metadata for a resolver invocation, @@ -160,6 +202,12 @@ pub struct AppSyncRequest { pub headers: HashMap>, #[serde(default)] pub domain_name: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `AppSyncInfo` contains metadata about the current GraphQL field being resolved. @@ -177,6 +225,12 @@ where pub field_name: String, #[serde(bound = "")] pub variables: T, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `AppSyncPrevResult` contains the result of the previous step in a pipeline resolver. @@ -187,6 +241,12 @@ where { #[serde(bound = "")] pub result: T, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `AppSyncIdentity` represents the identity of the caller as determined by the @@ -210,6 +270,12 @@ where pub claims: T, pub issuer: String, pub sub: String, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `AppSyncIdentityLambda` represents identity information when using AWS Lambda @@ -221,6 +287,12 @@ where { #[serde(bound = "")] pub resolver_context: T, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[cfg(test)] diff --git a/lambda-events/src/event/autoscaling/mod.rs b/lambda-events/src/event/autoscaling/mod.rs index 601e8774..3a1d4eed 100644 --- a/lambda-events/src/event/autoscaling/mod.rs +++ b/lambda-events/src/event/autoscaling/mod.rs @@ -41,6 +41,12 @@ where #[serde(default)] #[serde(bound = "")] pub detail: HashMap, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[cfg(test)] diff --git a/lambda-events/src/event/bedrock_agent_runtime/mod.rs b/lambda-events/src/event/bedrock_agent_runtime/mod.rs index c1425b85..1d813d76 100644 --- a/lambda-events/src/event/bedrock_agent_runtime/mod.rs +++ b/lambda-events/src/event/bedrock_agent_runtime/mod.rs @@ -1,4 +1,6 @@ use serde::{Deserialize, Serialize}; +#[cfg(feature = "catch-all-fields")] +use serde_json::Value; use std::collections::HashMap; /// The Event sent to Lambda from Agents for Amazon Bedrock. @@ -29,6 +31,12 @@ pub struct AgentEvent { pub session_attributes: HashMap, /// Contains prompt attributes and their values. pub prompt_session_attributes: HashMap, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -36,6 +44,12 @@ pub struct AgentEvent { pub struct RequestBody { /// Contains the request body and its properties pub content: HashMap, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -43,6 +57,12 @@ pub struct RequestBody { pub struct Content { /// The content of the request body pub properties: Vec, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -54,6 +74,12 @@ pub struct Property { pub r#type: String, /// The value of the parameter pub value: String, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -65,6 +91,12 @@ pub struct Parameter { pub r#type: String, /// The value of the parameter pub value: String, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -78,6 +110,12 @@ pub struct Agent { pub alias: String, /// The version of the agent. pub version: String, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[cfg(test)] diff --git a/lambda-events/src/event/chime_bot/mod.rs b/lambda-events/src/event/chime_bot/mod.rs index 6581ed2c..bcc9f897 100644 --- a/lambda-events/src/event/chime_bot/mod.rs +++ b/lambda-events/src/event/chime_bot/mod.rs @@ -1,5 +1,9 @@ use chrono::{DateTime, Utc}; use serde::{Deserialize, Serialize}; +#[cfg(feature = "catch-all-fields")] +use serde_json::Value; +#[cfg(feature = "catch-all-fields")] +use std::collections::HashMap; #[derive(Debug, Clone, Eq, PartialEq, Deserialize, Serialize)] #[serde(rename_all = "camelCase")] @@ -17,6 +21,12 @@ pub struct ChimeBotEvent { pub event_timestamp: DateTime, #[serde(rename = "Message")] pub message: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Debug, Clone, Eq, PartialEq, Deserialize, Serialize)] @@ -28,6 +38,12 @@ pub struct ChimeBotEventSender { #[serde(default)] #[serde(rename = "SenderIdType")] pub sender_id_type: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Debug, Clone, Eq, PartialEq, Deserialize, Serialize)] @@ -39,6 +55,12 @@ pub struct ChimeBotEventDiscussion { #[serde(default)] #[serde(rename = "DiscussionType")] pub discussion_type: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Debug, Clone, Eq, PartialEq, Deserialize, Serialize)] @@ -50,4 +72,10 @@ pub struct ChimeBotEventInboundHttpsEndpoint { #[serde(default)] #[serde(rename = "Url")] pub url: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } diff --git a/lambda-events/src/event/clientvpn/mod.rs b/lambda-events/src/event/clientvpn/mod.rs index 163abe72..678b81ad 100644 --- a/lambda-events/src/event/clientvpn/mod.rs +++ b/lambda-events/src/event/clientvpn/mod.rs @@ -1,4 +1,8 @@ use serde::{Deserialize, Serialize}; +#[cfg(feature = "catch-all-fields")] +use serde_json::Value; +#[cfg(feature = "catch-all-fields")] +use std::collections::HashMap; #[derive(Debug, Clone, Eq, PartialEq, Deserialize, Serialize)] #[serde(rename_all = "camelCase")] @@ -29,6 +33,12 @@ pub struct ClientVpnConnectionHandlerRequest { #[serde(default)] #[serde(rename = "schema-version")] pub schema_version: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Debug, Clone, Eq, PartialEq, Deserialize, Serialize)] @@ -43,6 +53,12 @@ pub struct ClientVpnConnectionHandlerResponse { #[serde(default)] #[serde(rename = "schema-version")] pub schema_version: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[cfg(test)] diff --git a/lambda-events/src/event/cloudformation/mod.rs b/lambda-events/src/event/cloudformation/mod.rs index 44156b97..ddb2fdb1 100644 --- a/lambda-events/src/event/cloudformation/mod.rs +++ b/lambda-events/src/event/cloudformation/mod.rs @@ -35,6 +35,12 @@ where pub logical_resource_id: String, #[serde(bound = "")] pub resource_properties: P2, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Deserialize, PartialEq, Serialize)] @@ -57,6 +63,12 @@ where pub resource_properties: P2, #[serde(bound = "")] pub old_resource_properties: P1, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Deserialize, PartialEq, Serialize)] @@ -76,6 +88,12 @@ where pub physical_resource_id: String, #[serde(bound = "")] pub resource_properties: P2, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Deserialize, PartialEq, Serialize)] @@ -89,6 +107,12 @@ pub struct CloudFormationCustomResourceResponse { pub logical_resource_id: String, pub no_echo: bool, pub data: HashMap, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Deserialize, PartialEq, Serialize)] diff --git a/lambda-events/src/event/cloudformation/provider.rs b/lambda-events/src/event/cloudformation/provider.rs index df5ba80a..ef8a4cc9 100644 --- a/lambda-events/src/event/cloudformation/provider.rs +++ b/lambda-events/src/event/cloudformation/provider.rs @@ -4,6 +4,9 @@ //! //! See for details. +#[cfg(feature = "catch-all-fields")] +use std::collections::HashMap; + use serde::{de::DeserializeOwned, Deserialize, Serialize}; use serde_json::Value; @@ -30,6 +33,7 @@ where { #[serde(flatten, bound = "")] pub common: CommonRequestParams, + // No `other` catch-all here; any additional fields will be caught in `common.other` instead } #[derive(Clone, Debug, Deserialize, PartialEq, Serialize)] @@ -46,6 +50,7 @@ where #[serde(flatten, bound = "")] pub common: CommonRequestParams, + // No `other` catch-all here; any additional fields will be caught in `common.other` instead } #[derive(Clone, Debug, Deserialize, PartialEq, Serialize)] @@ -58,6 +63,7 @@ where #[serde(flatten, bound = "")] pub common: CommonRequestParams, + // No `other` catch-all here; any additional fields will be caught in `common.other` instead } #[derive(Clone, Debug, Deserialize, PartialEq, Serialize)] @@ -72,6 +78,12 @@ where pub resource_type: String, pub request_id: String, pub stack_id: String, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Deserialize, PartialEq, Serialize, Default)] @@ -84,6 +96,12 @@ where #[serde(bound = "")] pub data: D, pub no_echo: bool, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[cfg(test)] diff --git a/lambda-events/src/event/cloudwatch_alarms/mod.rs b/lambda-events/src/event/cloudwatch_alarms/mod.rs index 720236c2..8232a277 100644 --- a/lambda-events/src/event/cloudwatch_alarms/mod.rs +++ b/lambda-events/src/event/cloudwatch_alarms/mod.rs @@ -33,6 +33,12 @@ where #[serde(default, bound = "")] pub alarm_data: CloudWatchAlarmData, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `CloudWatchMetricAlarm` is the structure of an event triggered by CloudWatch metric alarms. @@ -59,6 +65,12 @@ where pub previous_state: Option>, #[serde(bound = "")] pub configuration: C, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -76,6 +88,12 @@ where pub timestamp: DateTime, pub actions_suppressed_by: Option, pub actions_suppressed_reason: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -85,6 +103,12 @@ pub struct CloudWatchMetricAlarmConfiguration { pub description: Option, #[serde(default)] pub metrics: Vec, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -94,6 +118,12 @@ pub struct CloudWatchMetricDefinition { #[serde(default)] pub return_data: bool, pub metric_stat: CloudWatchMetricStatDefinition, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -105,6 +135,12 @@ pub struct CloudWatchMetricStatDefinition { pub stat: Option, pub period: u16, pub metric: CloudWatchMetricStatMetricDefinition, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -114,6 +150,12 @@ pub struct CloudWatchMetricStatMetricDefinition { pub namespace: Option, pub name: String, pub dimensions: HashMap, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -123,6 +165,12 @@ pub struct CloudWatchCompositeAlarmConfiguration { pub actions_suppressor: String, pub actions_suppressor_wait_period: u16, pub actions_suppressor_extension_period: u16, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -169,6 +217,12 @@ pub struct CloudWatchAlarmStateReasonDataMetric { pub threshold: f64, #[serde(default)] pub evaluated_datapoints: Vec, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, PartialEq, Serialize)] @@ -181,6 +235,12 @@ pub struct CloudWatchAlarmStateEvaluatedDatapoint { pub value: Option, #[serde(default)] pub threshold: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -188,6 +248,12 @@ pub struct CloudWatchAlarmStateEvaluatedDatapoint { pub struct ClodWatchAlarmStateReasonDataComposite { #[serde(default)] pub triggering_alarms: Vec, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -195,6 +261,12 @@ pub struct ClodWatchAlarmStateReasonDataComposite { pub struct CloudWatchAlarmStateTriggeringAlarm { pub arn: String, pub state: CloudWatchAlarmStateTriggeringAlarmState, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -203,6 +275,12 @@ pub struct CloudWatchAlarmStateTriggeringAlarmState { pub timestamp: DateTime, #[serde(default)] pub value: CloudWatchAlarmStateValue, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } impl<'de> Deserialize<'de> for CloudWatchAlarmStateReasonData { diff --git a/lambda-events/src/event/cloudwatch_events/cloudtrail.rs b/lambda-events/src/event/cloudwatch_events/cloudtrail.rs index fc332306..9705ffc8 100644 --- a/lambda-events/src/event/cloudwatch_events/cloudtrail.rs +++ b/lambda-events/src/event/cloudwatch_events/cloudtrail.rs @@ -1,6 +1,8 @@ use chrono::{DateTime, Utc}; use serde::{Deserialize, Serialize}; use serde_json::Value; +#[cfg(feature = "catch-all-fields")] +use std::collections::HashMap; #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] #[serde(rename_all = "camelCase")] @@ -23,6 +25,12 @@ pub struct AWSAPICall { #[serde(rename = "eventID")] pub event_id: String, pub event_type: String, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -33,6 +41,12 @@ pub struct SessionIssuer { pub principal_id: String, pub arn: String, pub account_id: String, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -40,6 +54,12 @@ pub struct SessionIssuer { pub struct WebIdFederationData { pub federated_provider: Option, pub attributes: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -47,6 +67,12 @@ pub struct WebIdFederationData { pub struct Attributes { pub mfa_authenticated: String, pub creation_date: DateTime, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -57,6 +83,12 @@ pub struct SessionContext { pub attributes: Attributes, pub source_identity: Option, pub ec2_role_delivery: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -64,6 +96,12 @@ pub struct SessionContext { pub struct OnBehalfOf { pub user_id: String, pub identity_store_arn: String, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } // https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-event-reference-user-identity.html @@ -79,6 +117,12 @@ pub struct UserIdentity { pub session_context: Option, pub user_name: Option, pub on_behalf_of: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[cfg(test)] diff --git a/lambda-events/src/event/cloudwatch_events/codedeploy.rs b/lambda-events/src/event/cloudwatch_events/codedeploy.rs index 1bd44297..f97aab01 100644 --- a/lambda-events/src/event/cloudwatch_events/codedeploy.rs +++ b/lambda-events/src/event/cloudwatch_events/codedeploy.rs @@ -1,4 +1,8 @@ use serde::{Deserialize, Serialize}; +#[cfg(feature = "catch-all-fields")] +use serde_json::Value; +#[cfg(feature = "catch-all-fields")] +use std::collections::HashMap; #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] #[serde(rename_all = "camelCase")] @@ -9,6 +13,12 @@ pub struct StateChangeNotification { pub deployment_id: String, pub state: String, pub deployment_group: String, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -21,6 +31,12 @@ pub struct DeploymentStateChangeNotification { pub deployment_id: String, pub instance_group_id: String, pub deployment_group: String, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -31,4 +47,10 @@ pub struct InstanceStateChangeNotification { pub state: String, #[serde(rename = "execution-id")] pub execution_id: String, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } diff --git a/lambda-events/src/event/cloudwatch_events/codepipeline.rs b/lambda-events/src/event/cloudwatch_events/codepipeline.rs index ce5fa47c..6ea73f55 100644 --- a/lambda-events/src/event/cloudwatch_events/codepipeline.rs +++ b/lambda-events/src/event/cloudwatch_events/codepipeline.rs @@ -1,4 +1,8 @@ use serde::{Deserialize, Serialize}; +#[cfg(feature = "catch-all-fields")] +use serde_json::Value; +#[cfg(feature = "catch-all-fields")] +use std::collections::HashMap; #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] #[serde(rename_all = "camelCase")] @@ -8,6 +12,12 @@ pub struct PipelineExecutionStateChange { pub state: String, #[serde(rename = "execution-id")] pub execution_id: String, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -19,6 +29,12 @@ pub struct StageExecutionStateChange { pub execution_id: String, pub stage: String, pub state: String, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -34,6 +50,12 @@ pub struct ActionExecutionStateChange { pub region: String, #[serde(rename = "type")] pub type_field: ActionExecutionStateChangeType, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -43,4 +65,10 @@ pub struct ActionExecutionStateChangeType { pub category: String, pub provider: String, pub version: i64, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } diff --git a/lambda-events/src/event/cloudwatch_events/ec2.rs b/lambda-events/src/event/cloudwatch_events/ec2.rs index c8eb7834..b1d4f746 100644 --- a/lambda-events/src/event/cloudwatch_events/ec2.rs +++ b/lambda-events/src/event/cloudwatch_events/ec2.rs @@ -1,4 +1,8 @@ use serde::{Deserialize, Serialize}; +#[cfg(feature = "catch-all-fields")] +use serde_json::Value; +#[cfg(feature = "catch-all-fields")] +use std::collections::HashMap; #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] #[serde(rename_all = "camelCase")] @@ -6,4 +10,10 @@ pub struct InstanceStateChange { #[serde(rename = "instance-id")] pub instance_id: String, pub state: String, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } diff --git a/lambda-events/src/event/cloudwatch_events/emr.rs b/lambda-events/src/event/cloudwatch_events/emr.rs index 87fb8085..05aeec63 100644 --- a/lambda-events/src/event/cloudwatch_events/emr.rs +++ b/lambda-events/src/event/cloudwatch_events/emr.rs @@ -1,4 +1,8 @@ use serde::{Deserialize, Serialize}; +#[cfg(feature = "catch-all-fields")] +use serde_json::Value; +#[cfg(feature = "catch-all-fields")] +use std::collections::HashMap; #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] #[serde(rename_all = "camelCase")] @@ -8,6 +12,12 @@ pub struct AutoScalingPolicyStateChange { pub state: String, pub message: String, pub scaling_resource_type: String, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -19,6 +29,12 @@ pub struct ClusterStateChange { pub cluster_id: String, pub state: String, pub message: String, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -34,6 +50,12 @@ pub struct InstanceGroupStateChange { pub running_instance_count: String, pub state: String, pub message: String, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -46,4 +68,10 @@ pub struct StepStatusChange { pub cluster_id: String, pub state: String, pub message: String, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } diff --git a/lambda-events/src/event/cloudwatch_events/gamelift.rs b/lambda-events/src/event/cloudwatch_events/gamelift.rs index fb5c50a7..1201d666 100644 --- a/lambda-events/src/event/cloudwatch_events/gamelift.rs +++ b/lambda-events/src/event/cloudwatch_events/gamelift.rs @@ -1,4 +1,8 @@ use serde::{Deserialize, Serialize}; +#[cfg(feature = "catch-all-fields")] +use serde_json::Value; +#[cfg(feature = "catch-all-fields")] +use std::collections::HashMap; use crate::custom_serde::deserialize_nullish_boolean; @@ -9,6 +13,12 @@ pub struct MatchmakingSearching { pub estimated_wait_millis: String, pub r#type: String, pub game_session_info: GameSessionInfo, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -17,6 +27,12 @@ pub struct Ticket { pub ticket_id: String, pub start_time: String, pub players: Vec, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -27,12 +43,24 @@ pub struct Player { #[serde(default, deserialize_with = "deserialize_nullish_boolean")] pub accepted: bool, pub player_session_id: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] #[serde(rename_all = "camelCase")] pub struct GameSessionInfo { pub players: Vec, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -45,6 +73,12 @@ pub struct PotentialMatchCreated { pub r#type: String, pub game_session_info: GameSessionInfo, pub match_id: String, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -53,6 +87,12 @@ pub struct RuleEvaluationMetric { pub rule_name: String, pub passed_count: i64, pub failed_count: i64, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -62,6 +102,12 @@ pub struct AcceptMatch { pub r#type: String, pub game_session_info: GameSessionInfo, pub match_id: String, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -72,6 +118,12 @@ pub struct AcceptMatchCompleted { pub r#type: String, pub game_session_info: GameSessionInfo, pub match_id: String, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -81,6 +133,12 @@ pub struct MatchmakingSucceeded { pub r#type: String, pub game_session_info: GameSessionInfo, pub match_id: String, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -92,6 +150,12 @@ pub struct MatchmakingTimedOut { pub r#type: String, pub message: String, pub game_session_info: GameSessionInfo, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -103,6 +167,12 @@ pub struct MatchmakingCancelled { pub r#type: String, pub message: String, pub game_session_info: GameSessionInfo, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -115,4 +185,10 @@ pub struct MatchmakingFailed { pub message: String, pub game_session_info: GameSessionInfo, pub match_id: String, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } diff --git a/lambda-events/src/event/cloudwatch_events/glue.rs b/lambda-events/src/event/cloudwatch_events/glue.rs index 08f05929..36cd1854 100644 --- a/lambda-events/src/event/cloudwatch_events/glue.rs +++ b/lambda-events/src/event/cloudwatch_events/glue.rs @@ -1,4 +1,8 @@ use serde::{Deserialize, Serialize}; +#[cfg(feature = "catch-all-fields")] +use serde_json::Value; +#[cfg(feature = "catch-all-fields")] +use std::collections::HashMap; #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] #[serde(rename_all = "camelCase")] @@ -8,6 +12,12 @@ pub struct JobRunStateChange { pub state: String, pub job_run_id: String, pub message: String, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -18,6 +28,12 @@ pub struct CrawlerStarted { pub start_time: String, pub state: String, pub message: String, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -38,6 +54,12 @@ pub struct CrawlerSucceeded { pub state: String, pub partitions_created: String, pub cloud_watch_log_link: String, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -49,6 +71,12 @@ pub struct CrawlerFailed { pub cloud_watch_log_link: String, pub state: String, pub message: String, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, PartialEq, Serialize)] @@ -61,6 +89,12 @@ pub struct JobRunStatus { pub job_run_id: String, pub message: String, pub started_on: String, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, PartialEq, Serialize)] @@ -68,6 +102,12 @@ pub struct JobRunStatus { pub struct NotificationCondition { #[serde(rename = "NotifyDelayAfter")] pub notify_delay_after: f64, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -77,6 +117,12 @@ pub struct DataCatalogTableStateChange { pub changed_partitions: Vec, pub type_of_change: String, pub table_name: String, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -85,4 +131,10 @@ pub struct DataCatalogDatabaseStateChange { pub database_name: String, pub type_of_change: String, pub changed_tables: Vec, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } diff --git a/lambda-events/src/event/cloudwatch_events/health.rs b/lambda-events/src/event/cloudwatch_events/health.rs index 2a6a82e3..784a5db7 100644 --- a/lambda-events/src/event/cloudwatch_events/health.rs +++ b/lambda-events/src/event/cloudwatch_events/health.rs @@ -1,4 +1,6 @@ use serde::{Deserialize, Serialize}; +#[cfg(feature = "catch-all-fields")] +use serde_json::Value; use std::collections::HashMap; #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -12,6 +14,12 @@ pub struct Event { pub end_time: String, pub event_description: Vec, pub affected_entities: Option>, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -19,6 +27,12 @@ pub struct Event { pub struct EventDescription { pub language: String, pub latest_description: String, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -26,4 +40,10 @@ pub struct EventDescription { pub struct Entity { pub entity_value: String, pub tags: HashMap, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } diff --git a/lambda-events/src/event/cloudwatch_events/kms.rs b/lambda-events/src/event/cloudwatch_events/kms.rs index 74a76e70..cb9e8626 100644 --- a/lambda-events/src/event/cloudwatch_events/kms.rs +++ b/lambda-events/src/event/cloudwatch_events/kms.rs @@ -1,8 +1,18 @@ use serde::{Deserialize, Serialize}; +#[cfg(feature = "catch-all-fields")] +use serde_json::Value; +#[cfg(feature = "catch-all-fields")] +use std::collections::HashMap; #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] #[serde(rename_all = "camelCase")] pub struct CMKEvent { #[serde(rename = "key-id")] pub key_id: String, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } diff --git a/lambda-events/src/event/cloudwatch_events/macie.rs b/lambda-events/src/event/cloudwatch_events/macie.rs index 37d18d7a..f5eaf0fb 100644 --- a/lambda-events/src/event/cloudwatch_events/macie.rs +++ b/lambda-events/src/event/cloudwatch_events/macie.rs @@ -1,4 +1,6 @@ use serde::{Deserialize, Serialize}; +#[cfg(feature = "catch-all-fields")] +use serde_json::Value; use std::collections::HashMap; #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -18,6 +20,12 @@ pub struct Alert { pub created_at: String, pub actor: String, pub summary: T, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } pub type BucketScanAlert = Alert; @@ -35,6 +43,12 @@ pub struct Trigger { pub created_at: String, pub description: String, pub risk: i64, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -57,6 +71,12 @@ pub struct BucketScanSummary { #[serde(rename = "Events")] pub events: HashMap, pub recipient_account_id: HashMap, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -68,6 +88,12 @@ pub struct Ip { pub n34_205_153_2: i64, #[serde(rename = "72.21.196.70")] pub n72_21_196_70: i64, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -76,6 +102,12 @@ pub struct TimeRange { pub count: i64, pub start: String, pub end: String, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -83,6 +115,12 @@ pub struct TimeRange { pub struct Location { #[serde(rename = "us-east-1")] pub us_east_1: i64, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -92,6 +130,12 @@ pub struct ActionInfo { #[serde(rename = "ISP")] pub isp: HashMap, pub error_code: Option>, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -109,6 +153,12 @@ pub struct BucketWritableSummary { pub event_count: i64, #[serde(rename = "Timestamps")] pub timestamps: HashMap, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -116,6 +166,12 @@ pub struct BucketWritableSummary { pub struct Bucket { #[serde(rename = "secret-bucket-name")] pub secret_bucket_name: i64, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -123,6 +179,12 @@ pub struct Bucket { pub struct Acl { #[serde(rename = "secret-bucket-name")] pub secret_bucket_name: Vec, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -132,6 +194,12 @@ pub struct SecretBucketName { pub owner: Owner, #[serde(rename = "Grants")] pub grants: Vec, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -141,6 +209,12 @@ pub struct Owner { pub display_name: String, #[serde(rename = "ID")] pub id: String, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -150,6 +224,12 @@ pub struct Grant { pub grantee: Grantee, #[serde(rename = "Permission")] pub permission: String, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -158,6 +238,12 @@ pub struct Grantee { pub r#type: String, #[serde(rename = "URI")] pub uri: String, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -179,6 +265,12 @@ pub struct BucketContainsHighRiskObjectSummary { pub owner: HashMap, #[serde(rename = "Timestamps")] pub timestamps: HashMap, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, PartialEq, Serialize)] @@ -197,6 +289,12 @@ pub struct AlertUpdated { pub created_at: String, pub actor: String, pub trigger: UpdatedTrigger, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, PartialEq, Serialize)] @@ -205,6 +303,12 @@ pub struct UpdatedTrigger { #[serde(rename = "alert-type")] pub alert_type: String, pub features: HashMap, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, PartialEq, Serialize)] @@ -218,4 +322,10 @@ pub struct FeatureInfo { #[serde(rename = "excession_times")] pub excession_times: Vec, pub risk: i64, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } diff --git a/lambda-events/src/event/cloudwatch_events/mod.rs b/lambda-events/src/event/cloudwatch_events/mod.rs index 2af343de..05bcd688 100644 --- a/lambda-events/src/event/cloudwatch_events/mod.rs +++ b/lambda-events/src/event/cloudwatch_events/mod.rs @@ -1,6 +1,8 @@ use chrono::{DateTime, Utc}; use serde::{de::DeserializeOwned, Deserialize, Serialize}; use serde_json::Value; +#[cfg(feature = "catch-all-fields")] +use std::collections::HashMap; pub mod cloudtrail; pub mod codedeploy; @@ -46,4 +48,10 @@ where pub resources: Vec, #[serde(bound = "")] pub detail: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } diff --git a/lambda-events/src/event/cloudwatch_events/opsworks.rs b/lambda-events/src/event/cloudwatch_events/opsworks.rs index d1c192e5..9c2b1788 100644 --- a/lambda-events/src/event/cloudwatch_events/opsworks.rs +++ b/lambda-events/src/event/cloudwatch_events/opsworks.rs @@ -1,4 +1,8 @@ use serde::{Deserialize, Serialize}; +#[cfg(feature = "catch-all-fields")] +use serde_json::Value; +#[cfg(feature = "catch-all-fields")] +use std::collections::HashMap; #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] #[serde(rename_all = "camelCase")] @@ -15,6 +19,12 @@ pub struct InstanceStateChange { #[serde(rename = "ec2-instance-id")] pub ec2_instance_id: String, pub status: String, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -26,6 +36,12 @@ pub struct CommandStateChange { pub instance_id: String, pub r#type: String, pub status: String, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -40,6 +56,12 @@ pub struct DeploymentStateChange { pub deployment_id: String, pub command: String, pub status: String, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -51,4 +73,10 @@ pub struct Alert { pub instance_id: String, pub r#type: String, pub message: String, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } diff --git a/lambda-events/src/event/cloudwatch_events/signin.rs b/lambda-events/src/event/cloudwatch_events/signin.rs index 1cd73e6e..84b89f9b 100644 --- a/lambda-events/src/event/cloudwatch_events/signin.rs +++ b/lambda-events/src/event/cloudwatch_events/signin.rs @@ -1,5 +1,7 @@ use serde::{Deserialize, Serialize}; use serde_json::Value; +#[cfg(feature = "catch-all-fields")] +use std::collections::HashMap; #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] #[serde(rename_all = "camelCase")] @@ -19,6 +21,12 @@ pub struct SignIn { #[serde(rename = "eventID")] pub event_id: String, pub event_type: String, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -28,6 +36,12 @@ pub struct UserIdentity { pub principal_id: String, pub arn: String, pub account_id: String, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -35,6 +49,12 @@ pub struct UserIdentity { pub struct ResponseElements { #[serde(rename = "ConsoleLogin")] pub console_login: String, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -46,4 +66,10 @@ pub struct AdditionalEventData { pub mobile_version: String, #[serde(rename = "MFAUsed")] pub mfaused: String, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } diff --git a/lambda-events/src/event/cloudwatch_events/sms.rs b/lambda-events/src/event/cloudwatch_events/sms.rs index 7d161822..36785e18 100644 --- a/lambda-events/src/event/cloudwatch_events/sms.rs +++ b/lambda-events/src/event/cloudwatch_events/sms.rs @@ -1,4 +1,8 @@ use serde::{Deserialize, Serialize}; +#[cfg(feature = "catch-all-fields")] +use serde_json::Value; +#[cfg(feature = "catch-all-fields")] +use std::collections::HashMap; #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] #[serde(rename_all = "camelCase")] @@ -11,4 +15,10 @@ pub struct JobStateChange { #[serde(rename = "ami-id")] pub ami_id: Option, pub version: String, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } diff --git a/lambda-events/src/event/cloudwatch_events/ssm.rs b/lambda-events/src/event/cloudwatch_events/ssm.rs index fa6ffc3b..c58e2e27 100644 --- a/lambda-events/src/event/cloudwatch_events/ssm.rs +++ b/lambda-events/src/event/cloudwatch_events/ssm.rs @@ -1,4 +1,6 @@ use serde::{Deserialize, Serialize}; +#[cfg(feature = "catch-all-fields")] +use serde_json::Value; use std::collections::HashMap; #[derive(Clone, Debug, Default, Deserialize, PartialEq, Serialize)] @@ -22,6 +24,12 @@ pub struct EC2AutomationStepStatusChange { pub step_name: String, #[serde(rename = "Action")] pub action: String, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, PartialEq, Serialize)] @@ -43,6 +51,12 @@ pub struct EC2AutomationExecutionStatusChange { pub time: f64, #[serde(rename = "ExecutedBy")] pub executed_by: String, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -51,6 +65,12 @@ pub struct StateChange { pub state: String, pub at_time: String, pub next_transition_time: String, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -69,6 +89,12 @@ pub struct ConfigurationComplianceStateChange { #[serde(rename = "patch-baseline-id")] pub patch_baseline_id: Option, pub serverity: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -79,6 +105,12 @@ pub struct MaintenanceWindowTargetRegistration { #[serde(rename = "window-id")] pub window_id: String, pub status: String, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -93,6 +125,12 @@ pub struct MaintenanceWindowExecutionStateChange { #[serde(rename = "window-execution-id")] pub window_execution_id: String, pub status: String, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -109,6 +147,12 @@ pub struct MaintenanceWindowTaskExecutionStateChange { #[serde(rename = "window-execution-id")] pub window_execution_id: String, pub status: String, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -129,6 +173,12 @@ pub struct MaintenanceWindowTaskTargetInvocationStateChange { pub status: String, #[serde(rename = "owner-information")] pub owner_information: String, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -137,6 +187,12 @@ pub struct MaintenanceWindowStateChange { #[serde(rename = "window-id")] pub window_id: String, pub status: String, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -146,6 +202,12 @@ pub struct ParameterStoreStateChange { pub name: String, pub r#type: String, pub description: String, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -161,6 +223,12 @@ pub struct EC2CommandStatusChange { #[serde(rename = "requested-date-time")] pub requested_date_time: String, pub status: String, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -175,6 +243,12 @@ pub struct EC2CommandInvocationStatusChange { #[serde(rename = "requested-date-time")] pub requested_date_time: String, pub status: String, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -204,6 +278,12 @@ pub struct EC2StateManagerAssociationStateChange { pub schedule_expression: String, #[serde(rename = "association-cwe-version")] pub association_cwe_version: String, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -235,4 +315,10 @@ pub struct EC2StateManagerInstanceAssociationStateChange { pub output_url: String, #[serde(rename = "instance-association-cwe-version")] pub instance_association_cwe_version: String, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } diff --git a/lambda-events/src/event/cloudwatch_events/tag.rs b/lambda-events/src/event/cloudwatch_events/tag.rs index d5bc9681..e96190d1 100644 --- a/lambda-events/src/event/cloudwatch_events/tag.rs +++ b/lambda-events/src/event/cloudwatch_events/tag.rs @@ -1,3 +1,5 @@ +#[cfg(feature = "catch-all-fields")] +use serde_json::Value; use std::collections::HashMap; use serde::{Deserialize, Serialize}; @@ -12,4 +14,10 @@ pub struct TagChangeOnResource { pub resource_type: String, pub version: i64, pub tags: HashMap, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } diff --git a/lambda-events/src/event/cloudwatch_events/trustedadvisor.rs b/lambda-events/src/event/cloudwatch_events/trustedadvisor.rs index 6a7e25d3..f0408a5a 100644 --- a/lambda-events/src/event/cloudwatch_events/trustedadvisor.rs +++ b/lambda-events/src/event/cloudwatch_events/trustedadvisor.rs @@ -1,4 +1,6 @@ use serde::{Deserialize, Serialize}; +#[cfg(feature = "catch-all-fields")] +use serde_json::Value; use std::collections::HashMap; #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -12,4 +14,10 @@ pub struct CheckItemRefreshNotification { #[serde(rename = "resource_id")] pub resource_id: String, pub uuid: String, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } diff --git a/lambda-events/src/event/cloudwatch_logs/mod.rs b/lambda-events/src/event/cloudwatch_logs/mod.rs index 0c9ad4a8..4d96c037 100644 --- a/lambda-events/src/event/cloudwatch_logs/mod.rs +++ b/lambda-events/src/event/cloudwatch_logs/mod.rs @@ -3,6 +3,10 @@ use serde::{ ser::{Error as SeError, SerializeStruct}, Deserialize, Deserializer, Serialize, Serializer, }; +#[cfg(feature = "catch-all-fields")] +use serde_json::Value; +#[cfg(feature = "catch-all-fields")] +use std::collections::HashMap; use std::{fmt, io::BufReader}; /// `LogsEvent` represents the raw event sent by CloudWatch @@ -11,6 +15,12 @@ pub struct LogsEvent { /// `aws_logs` is gzipped and base64 encoded, it needs a custom deserializer #[serde(rename = "awslogs")] pub aws_logs: AwsLogs, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `AwsLogs` is an unmarshaled, ungzipped, CloudWatch logs event @@ -36,6 +46,12 @@ pub struct LogData { pub message_type: String, /// Entries in the log batch pub log_events: Vec, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `LogEntry` represents a log entry from cloudwatch logs @@ -47,6 +63,12 @@ pub struct LogEntry { pub timestamp: i64, /// Message published in the application log pub message: String, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } impl<'de> Deserialize<'de> for AwsLogs { diff --git a/lambda-events/src/event/code_commit/mod.rs b/lambda-events/src/event/code_commit/mod.rs index 7d5edfaa..11d84c1a 100644 --- a/lambda-events/src/event/code_commit/mod.rs +++ b/lambda-events/src/event/code_commit/mod.rs @@ -1,5 +1,9 @@ use chrono::{DateTime, Utc}; use serde::{Deserialize, Serialize}; +#[cfg(feature = "catch-all-fields")] +use serde_json::Value; +#[cfg(feature = "catch-all-fields")] +use std::collections::HashMap; use crate::custom_serde::deserialize_nullish_boolean; @@ -9,6 +13,12 @@ use crate::custom_serde::deserialize_nullish_boolean; pub struct CodeCommitEvent { #[serde(rename = "Records")] pub records: Vec, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } pub type CodeCommitEventTime = DateTime; @@ -44,6 +54,12 @@ pub struct CodeCommitRecord { pub aws_region: Option, pub event_total_parts: u64, pub custom_data: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `CodeCommitCodeCommit` represents a CodeCommit object in a record @@ -51,6 +67,15 @@ pub struct CodeCommitRecord { #[serde(rename_all = "camelCase")] pub struct CodeCommitCodeCommit { pub references: Vec, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `CodeCommitReference` represents a Reference object in a CodeCommit object @@ -63,6 +88,12 @@ pub struct CodeCommitReference { pub ref_: Option, #[serde(default, deserialize_with = "deserialize_nullish_boolean")] pub created: bool, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[cfg(test)] diff --git a/lambda-events/src/event/codebuild/mod.rs b/lambda-events/src/event/codebuild/mod.rs index ad7775d2..7d812f46 100644 --- a/lambda-events/src/event/codebuild/mod.rs +++ b/lambda-events/src/event/codebuild/mod.rs @@ -5,6 +5,8 @@ use crate::{ use chrono::{DateTime, Utc}; use serde::{de::DeserializeOwned, Deserialize, Serialize}; use serde_json::Value; +#[cfg(feature = "catch-all-fields")] +use std::collections::HashMap; pub type CodeBuildPhaseStatus = String; @@ -44,6 +46,12 @@ pub struct CodeBuildEvent { /// Detail contains information specific to a build state-change or /// build phase-change event. pub detail: CodeBuildEventDetail, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `CodeBuildEventDetail` represents the all details related to the code build event @@ -84,6 +92,12 @@ pub struct CodeBuildEventDetail { #[serde(default)] #[serde(with = "codebuild_time::optional_time")] pub completed_phase_end: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `CodeBuildEventAdditionalInformation` represents additional information to the code build event @@ -109,6 +123,12 @@ pub struct CodeBuildEventAdditionalInformation { pub source_version: Option, pub logs: CodeBuildLogs, pub phases: Vec, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `CodeBuildArtifact` represents the artifact provided to build @@ -123,6 +143,12 @@ pub struct CodeBuildArtifact { pub sha256_sum: Option, #[serde(default)] pub location: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `CodeBuildEnvironment` represents the environment for a build @@ -140,6 +166,12 @@ pub struct CodeBuildEnvironment { pub type_: Option, #[serde(rename = "environment-variables")] pub environment_variables: Vec, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `CodeBuildEnvironmentVariable` encapsulate environment variables for the code build @@ -155,6 +187,12 @@ pub struct CodeBuildEnvironmentVariable { /// Value is the value of the environment variable. #[serde(default)] pub value: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `CodeBuildSource` represent the code source will be build @@ -165,6 +203,12 @@ pub struct CodeBuildSource { pub location: Option, #[serde(default)] pub type_: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `CodeBuildLogs` gives the log details of a code build @@ -180,6 +224,12 @@ pub struct CodeBuildLogs { #[serde(default)] #[serde(rename = "deep-link")] pub deep_link: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `CodeBuildPhase` represents the phase of a build and its details @@ -206,6 +256,12 @@ where pub phase_type: CodeBuildPhaseType, #[serde(rename = "phase-status")] pub phase_status: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } pub type CodeBuildTime = DateTime; diff --git a/lambda-events/src/event/codedeploy/mod.rs b/lambda-events/src/event/codedeploy/mod.rs index b0a25c5b..fd079473 100644 --- a/lambda-events/src/event/codedeploy/mod.rs +++ b/lambda-events/src/event/codedeploy/mod.rs @@ -1,5 +1,9 @@ use chrono::{DateTime, Utc}; use serde::{Deserialize, Serialize}; +#[cfg(feature = "catch-all-fields")] +use serde_json::Value; +#[cfg(feature = "catch-all-fields")] +use std::collections::HashMap; pub type CodeDeployDeploymentState = String; @@ -38,6 +42,12 @@ pub struct CodeDeployEvent { pub resources: Vec, /// Detail contains information specific to a deployment event. pub detail: CodeDeployEventDetail, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Debug, Clone, Eq, PartialEq, Deserialize, Serialize)] @@ -63,6 +73,12 @@ pub struct CodeDeployEventDetail { /// DeploymentGroup is the name of the deployment group. #[serde(default)] pub deployment_group: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Debug, Clone, Deserialize, Serialize, Eq, PartialEq)] @@ -70,6 +86,12 @@ pub struct CodeDeployEventDetail { pub struct CodeDeployLifecycleEvent { pub deployment_id: String, pub lifecycle_event_hook_execution_id: String, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[cfg(test)] diff --git a/lambda-events/src/event/codepipeline_cloudwatch/mod.rs b/lambda-events/src/event/codepipeline_cloudwatch/mod.rs index 6e394c17..f5efdfbc 100644 --- a/lambda-events/src/event/codepipeline_cloudwatch/mod.rs +++ b/lambda-events/src/event/codepipeline_cloudwatch/mod.rs @@ -1,5 +1,9 @@ use chrono::{DateTime, Utc}; use serde::{Deserialize, Serialize}; +#[cfg(feature = "catch-all-fields")] +use serde_json::Value; +#[cfg(feature = "catch-all-fields")] +use std::collections::HashMap; pub type CodePipelineStageState = String; @@ -42,6 +46,12 @@ pub struct CodePipelineCloudWatchEvent { pub resources: Vec, /// Detail contains information specific to a deployment event. pub detail: CodePipelineEventDetail, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Debug, Clone, Eq, PartialEq, Deserialize, Serialize)] @@ -62,6 +72,12 @@ pub struct CodePipelineEventDetail { #[serde(default)] pub region: Option, pub type_: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Debug, Clone, Eq, PartialEq, Deserialize, Serialize)] @@ -75,6 +91,12 @@ pub struct CodePipelineEventDetailType { pub provider: Option, /// From published EventBridge schema registry this is always int64 not string as documented pub version: i64, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[cfg(test)] diff --git a/lambda-events/src/event/codepipeline_job/mod.rs b/lambda-events/src/event/codepipeline_job/mod.rs index 888e77b7..0344513c 100644 --- a/lambda-events/src/event/codepipeline_job/mod.rs +++ b/lambda-events/src/event/codepipeline_job/mod.rs @@ -1,4 +1,8 @@ use serde::{Deserialize, Serialize}; +#[cfg(feature = "catch-all-fields")] +use serde_json::Value; +#[cfg(feature = "catch-all-fields")] +use std::collections::HashMap; /// `CodePipelineJobEvent` contains data from an event sent from AWS CodePipeline #[derive(Debug, Clone, Eq, PartialEq, Deserialize, Serialize)] @@ -6,6 +10,12 @@ use serde::{Deserialize, Serialize}; pub struct CodePipelineJobEvent { #[serde(rename = "CodePipeline.job")] pub code_pipeline_job: CodePipelineJob, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `CodePipelineJob` represents a job from an AWS CodePipeline event @@ -17,6 +27,12 @@ pub struct CodePipelineJob { #[serde(default)] pub account_id: Option, pub data: CodePipelineData, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `CodePipelineData` represents a job from an AWS CodePipeline event @@ -30,6 +46,12 @@ pub struct CodePipelineData { pub artifact_credentials: CodePipelineArtifactCredentials, #[serde(default)] pub continuation_token: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `CodePipelineActionConfiguration` represents an Action Configuration @@ -37,6 +59,12 @@ pub struct CodePipelineData { #[serde(rename_all = "camelCase")] pub struct CodePipelineActionConfiguration { pub configuration: CodePipelineConfiguration, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `CodePipelineConfiguration` represents a configuration for an Action Configuration @@ -49,6 +77,12 @@ pub struct CodePipelineConfiguration { #[serde(default)] #[serde(rename = "UserParameters")] pub user_parameters: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `CodePipelineInputArtifact` represents an input artifact @@ -59,6 +93,12 @@ pub struct CodePipelineInputArtifact { pub revision: Option, #[serde(default)] pub name: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `CodePipelineInputLocation` represents a input location @@ -69,6 +109,12 @@ pub struct CodePipelineInputLocation { #[serde(default)] #[serde(rename = "type")] pub location_type: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `CodePipelineS3Location` represents an s3 input location @@ -79,6 +125,12 @@ pub struct CodePipelineS3Location { pub bucket_name: Option, #[serde(default)] pub object_key: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `CodePipelineOutputArtifact` represents an output artifact @@ -89,6 +141,12 @@ pub struct CodePipelineOutputArtifact { pub revision: Option, #[serde(default)] pub name: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `CodePipelineOutputLocation` represents a output location @@ -99,6 +157,12 @@ pub struct CodePipelineOutputLocation { #[serde(default)] #[serde(rename = "type")] pub location_type: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `CodePipelineArtifactCredentials` represents CodePipeline artifact credentials @@ -111,6 +175,12 @@ pub struct CodePipelineArtifactCredentials { pub session_token: Option, #[serde(default)] pub access_key_id: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[cfg(test)] diff --git a/lambda-events/src/event/cognito/mod.rs b/lambda-events/src/event/cognito/mod.rs index a0ebd8d9..f66b928b 100644 --- a/lambda-events/src/event/cognito/mod.rs +++ b/lambda-events/src/event/cognito/mod.rs @@ -22,6 +22,12 @@ pub struct CognitoEvent { #[serde(default)] pub region: Option, pub version: i64, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `CognitoDatasetRecord` represents a record from an AWS Cognito Sync event @@ -34,6 +40,12 @@ pub struct CognitoDatasetRecord { pub old_value: Option, #[serde(default)] pub op: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `CognitoEventUserPoolsPreSignup` is sent by AWS Cognito User Pools when a user attempts to register @@ -46,6 +58,12 @@ pub struct CognitoEventUserPoolsPreSignup { pub cognito_event_user_pools_header: CognitoEventUserPoolsHeader, pub request: CognitoEventUserPoolsPreSignupRequest, pub response: CognitoEventUserPoolsPreSignupResponse, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Deserialize, Eq, PartialEq, Serialize, Default)] @@ -70,6 +88,12 @@ pub struct CognitoEventUserPoolsPreAuthentication { CognitoEventUserPoolsHeader, pub request: CognitoEventUserPoolsPreAuthenticationRequest, pub response: CognitoEventUserPoolsPreAuthenticationResponse, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Deserialize, Eq, PartialEq, Serialize, Default)] @@ -95,6 +119,12 @@ where pub request: CognitoEventUserPoolsPostConfirmationRequest, #[serde(bound = "")] pub response: T, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Deserialize, Eq, PartialEq, Serialize, Default)] @@ -116,6 +146,12 @@ pub struct CognitoEventUserPoolsPreTokenGen { pub cognito_event_user_pools_header: CognitoEventUserPoolsHeader, pub request: CognitoEventUserPoolsPreTokenGenRequest, pub response: CognitoEventUserPoolsPreTokenGenResponse, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Deserialize, Eq, PartialEq, Serialize, Default)] @@ -144,6 +180,12 @@ pub struct CognitoEventUserPoolsPostAuthentication { CognitoEventUserPoolsHeader, pub request: CognitoEventUserPoolsPostAuthenticationRequest, pub response: CognitoEventUserPoolsPostAuthenticationResponse, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Deserialize, Eq, PartialEq, Serialize, Default)] @@ -165,6 +207,12 @@ pub struct CognitoEventUserPoolsMigrateUser { pub cognito_event_user_pools_migrate_user_request: CognitoEventUserPoolsMigrateUserRequest, #[serde(rename = "response")] pub cognito_event_user_pools_migrate_user_response: CognitoEventUserPoolsMigrateUserResponse, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Deserialize, Eq, PartialEq, Serialize, Default)] @@ -185,6 +233,12 @@ pub struct CognitoEventUserPoolsCallerContext { pub awssdk_version: Option, #[serde(default)] pub client_id: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `CognitoEventUserPoolsHeader` contains common data from events sent by AWS Cognito User Pools @@ -202,6 +256,9 @@ pub struct CognitoEventUserPoolsHeader { pub caller_context: CognitoEventUserPoolsCallerContext, #[serde(default)] pub user_name: Option, + // no `other` catch-all, because this struct is itself #[serde(flatten)]-ed + // into a different struct that contains an `other` catch-all, so any + // additional fields will be caught there instead } /// `CognitoEventUserPoolsPreSignupRequest` contains the request portion of a PreSignup event @@ -217,6 +274,12 @@ pub struct CognitoEventUserPoolsPreSignupRequest { #[serde(deserialize_with = "deserialize_lambda_map")] #[serde(default)] pub client_metadata: HashMap, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `CognitoEventUserPoolsPreSignupResponse` contains the response portion of a PreSignup event @@ -226,6 +289,12 @@ pub struct CognitoEventUserPoolsPreSignupResponse { pub auto_confirm_user: bool, pub auto_verify_email: bool, pub auto_verify_phone: bool, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `CognitoEventUserPoolsPreAuthenticationRequest` contains the request portion of a PreAuthentication event @@ -238,11 +307,24 @@ pub struct CognitoEventUserPoolsPreAuthenticationRequest { #[serde(deserialize_with = "deserialize_lambda_map")] #[serde(default)] pub validation_data: HashMap, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `CognitoEventUserPoolsPreAuthenticationResponse` contains the response portion of a PreAuthentication event #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] -pub struct CognitoEventUserPoolsPreAuthenticationResponse {} +pub struct CognitoEventUserPoolsPreAuthenticationResponse { + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, +} /// `CognitoEventUserPoolsPostConfirmationRequest` contains the request portion of a PostConfirmation event #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] #[serde(rename_all = "camelCase")] @@ -253,11 +335,24 @@ pub struct CognitoEventUserPoolsPostConfirmationRequest { #[serde(deserialize_with = "deserialize_lambda_map")] #[serde(default)] pub client_metadata: HashMap, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `CognitoEventUserPoolsPostConfirmationResponse` contains the response portion of a PostConfirmation event #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] -pub struct CognitoEventUserPoolsPostConfirmationResponse {} +pub struct CognitoEventUserPoolsPostConfirmationResponse { + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, +} /// `CognitoEventUserPoolsPreTokenGenRequest` contains request portion of PreTokenGen event #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -270,6 +365,12 @@ pub struct CognitoEventUserPoolsPreTokenGenRequest { #[serde(deserialize_with = "deserialize_lambda_map")] #[serde(default)] pub client_metadata: HashMap, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `CognitoEventUserPoolsPreTokenGenResponse` contains the response portion of a PreTokenGen event @@ -277,6 +378,12 @@ pub struct CognitoEventUserPoolsPreTokenGenRequest { #[serde(rename_all = "camelCase")] pub struct CognitoEventUserPoolsPreTokenGenResponse { pub claims_override_details: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `CognitoEventUserPoolsPreTokenGenV2` is sent by AWS Cognito User Pools when a user attempts to retrieve @@ -289,6 +396,12 @@ pub struct CognitoEventUserPoolsPreTokenGenV2 { pub cognito_event_user_pools_header: CognitoEventUserPoolsHeader, pub request: CognitoEventUserPoolsPreTokenGenRequestV2, pub response: CognitoEventUserPoolsPreTokenGenResponseV2, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `CognitoEventUserPoolsPreTokenGenRequestV2` contains request portion of PreTokenGenV2 event @@ -303,12 +416,24 @@ pub struct CognitoEventUserPoolsPreTokenGenRequestV2 { #[serde(default)] pub client_metadata: HashMap, pub scopes: Vec, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] #[serde(rename_all = "camelCase")] pub struct CognitoEventUserPoolsPreTokenGenResponseV2 { pub claims_and_scope_override_details: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `ClaimsAndScopeOverrideDetailsV2` allows lambda to add, suppress or override claims in the token @@ -318,6 +443,12 @@ pub struct ClaimsAndScopeOverrideDetailsV2 { pub group_override_details: GroupConfiguration, pub id_token_generation: Option, pub access_token_generation: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `CognitoIdTokenGenerationV2` allows lambda to customize the ID Token before generation @@ -326,6 +457,12 @@ pub struct ClaimsAndScopeOverrideDetailsV2 { pub struct CognitoIdTokenGenerationV2 { pub claims_to_add_or_override: HashMap, pub claims_to_suppress: Vec, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `CognitoAccessTokenGenerationV2` allows lambda to customize the Access Token before generation @@ -336,6 +473,12 @@ pub struct CognitoAccessTokenGenerationV2 { pub claims_to_suppress: Vec, pub scopes_to_add: Vec, pub scopes_to_suppress: Vec, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `CognitoEventUserPoolsPostAuthenticationRequest` contains the request portion of a PostAuthentication event @@ -349,11 +492,24 @@ pub struct CognitoEventUserPoolsPostAuthenticationRequest { #[serde(deserialize_with = "deserialize_lambda_map")] #[serde(default)] pub client_metadata: HashMap, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `CognitoEventUserPoolsPostAuthenticationResponse` contains the response portion of a PostAuthentication event #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] -pub struct CognitoEventUserPoolsPostAuthenticationResponse {} +pub struct CognitoEventUserPoolsPostAuthenticationResponse { + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, +} /// `CognitoEventUserPoolsMigrateUserRequest` contains the request portion of a MigrateUser event #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] #[serde(rename_all = "camelCase")] @@ -366,6 +522,12 @@ pub struct CognitoEventUserPoolsMigrateUserRequest { #[serde(deserialize_with = "deserialize_lambda_map")] #[serde(default)] pub client_metadata: HashMap, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `CognitoEventUserPoolsMigrateUserResponse` contains the response portion of a MigrateUser event @@ -383,6 +545,12 @@ pub struct CognitoEventUserPoolsMigrateUserResponse { pub desired_delivery_mediums: Option>, #[serde(default, deserialize_with = "deserialize_nullish_boolean")] pub force_alias_creation: bool, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `ClaimsOverrideDetails` allows lambda to add, suppress or override claims in the token @@ -394,6 +562,12 @@ pub struct ClaimsOverrideDetails { #[serde(default)] pub claims_to_add_or_override: HashMap, pub claims_to_suppress: Vec, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `GroupConfiguration` allows lambda to override groups, roles and set a preferred role @@ -403,6 +577,12 @@ pub struct GroupConfiguration { pub groups_to_override: Vec, pub iam_roles_to_override: Vec, pub preferred_role: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `CognitoEventUserPoolsChallengeResult` represents a challenge that is presented to the user in the authentication @@ -415,6 +595,12 @@ pub struct CognitoEventUserPoolsChallengeResult { pub challenge_result: bool, #[serde(default)] pub challenge_metadata: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `CognitoEventUserPoolsDefineAuthChallengeRequest` defines auth challenge request parameters @@ -430,6 +616,12 @@ pub struct CognitoEventUserPoolsDefineAuthChallengeRequest { pub client_metadata: HashMap, #[serde(default)] pub user_not_found: bool, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `CognitoEventUserPoolsDefineAuthChallengeResponse` defines auth challenge response parameters @@ -442,6 +634,12 @@ pub struct CognitoEventUserPoolsDefineAuthChallengeResponse { pub issue_tokens: bool, #[serde(default, deserialize_with = "deserialize_nullish_boolean")] pub fail_authentication: bool, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `CognitoEventUserPoolsDefineAuthChallenge` sent by AWS Cognito User Pools to initiate custom authentication flow @@ -454,6 +652,12 @@ pub struct CognitoEventUserPoolsDefineAuthChallenge { CognitoEventUserPoolsHeader, pub request: CognitoEventUserPoolsDefineAuthChallengeRequest, pub response: CognitoEventUserPoolsDefineAuthChallengeResponse, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Deserialize, Eq, PartialEq, Serialize, Default)] @@ -478,6 +682,12 @@ pub struct CognitoEventUserPoolsCreateAuthChallengeRequest { pub client_metadata: HashMap, #[serde(default)] pub user_not_found: bool, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `CognitoEventUserPoolsCreateAuthChallengeResponse` defines create auth challenge response parameters @@ -492,6 +702,12 @@ pub struct CognitoEventUserPoolsCreateAuthChallengeResponse { pub private_challenge_parameters: HashMap, #[serde(default)] pub challenge_metadata: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `CognitoEventUserPoolsCreateAuthChallenge` sent by AWS Cognito User Pools to create a challenge to present to the user @@ -504,6 +720,12 @@ pub struct CognitoEventUserPoolsCreateAuthChallenge { CognitoEventUserPoolsHeader, pub request: CognitoEventUserPoolsCreateAuthChallengeRequest, pub response: CognitoEventUserPoolsCreateAuthChallengeResponse, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Deserialize, Eq, PartialEq, Serialize, Default)] @@ -534,6 +756,12 @@ where pub client_metadata: HashMap, #[serde(default)] pub user_not_found: bool, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `CognitoEventUserPoolsVerifyAuthChallengeResponse` defines verify auth challenge response parameters @@ -542,6 +770,12 @@ where pub struct CognitoEventUserPoolsVerifyAuthChallengeResponse { #[serde(default, deserialize_with = "deserialize_nullish_boolean")] pub answer_correct: bool, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `CognitoEventUserPoolsVerifyAuthChallenge` sent by AWS Cognito User Pools to verify if the response from the end user @@ -555,6 +789,12 @@ pub struct CognitoEventUserPoolsVerifyAuthChallenge { CognitoEventUserPoolsHeader, pub request: CognitoEventUserPoolsVerifyAuthChallengeRequest, pub response: CognitoEventUserPoolsVerifyAuthChallengeResponse, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Deserialize, Eq, PartialEq, Serialize, Default)] @@ -574,6 +814,12 @@ pub struct CognitoEventUserPoolsCustomMessage { pub cognito_event_user_pools_header: CognitoEventUserPoolsHeader, pub request: CognitoEventUserPoolsCustomMessageRequest, pub response: CognitoEventUserPoolsCustomMessageResponse, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Deserialize, Eq, PartialEq, Serialize, Default)] @@ -614,6 +860,12 @@ where #[serde(deserialize_with = "deserialize_lambda_map")] #[serde(default)] pub client_metadata: HashMap, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `CognitoEventUserPoolsCustomMessageResponse` contains the response portion of a CustomMessage event @@ -626,6 +878,12 @@ pub struct CognitoEventUserPoolsCustomMessageResponse { pub email_message: Option, #[serde(default)] pub email_subject: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[cfg(test)] @@ -855,7 +1113,8 @@ mod test { assert!(parsed.request.user_not_found); - let output: String = serde_json::to_string(&parsed).unwrap(); + let output: String = serde_json::to_string_pretty(&parsed).unwrap(); + println!("output is: {output}"); let reparsed: CognitoEventUserPoolsVerifyAuthChallenge = serde_json::from_slice(output.as_bytes()).unwrap(); assert_eq!(parsed, reparsed); } diff --git a/lambda-events/src/event/config/mod.rs b/lambda-events/src/event/config/mod.rs index 7c06e13b..bb44e26a 100644 --- a/lambda-events/src/event/config/mod.rs +++ b/lambda-events/src/event/config/mod.rs @@ -1,4 +1,8 @@ use serde::{Deserialize, Serialize}; +#[cfg(feature = "catch-all-fields")] +use serde_json::Value; +#[cfg(feature = "catch-all-fields")] +use std::collections::HashMap; /// `ConfigEvent` contains data from an event sent from AWS Config #[derive(Debug, Clone, Eq, PartialEq, Deserialize, Serialize)] @@ -34,6 +38,12 @@ pub struct ConfigEvent { pub rule_parameters: Option, #[serde(default)] pub version: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[cfg(test)] diff --git a/lambda-events/src/event/connect/mod.rs b/lambda-events/src/event/connect/mod.rs index 04f26eb5..0e2e053c 100644 --- a/lambda-events/src/event/connect/mod.rs +++ b/lambda-events/src/event/connect/mod.rs @@ -1,4 +1,6 @@ use serde::{Deserialize, Serialize}; +#[cfg(feature = "catch-all-fields")] +use serde_json::Value; use std::collections::HashMap; use crate::custom_serde::deserialize_lambda_map; @@ -13,6 +15,12 @@ pub struct ConnectEvent { #[serde(default)] #[serde(rename = "Name")] pub name: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `ConnectDetails` holds the details of a Connect event @@ -26,6 +34,12 @@ pub struct ConnectDetails { #[serde(default)] #[serde(rename = "Parameters")] pub parameters: HashMap, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `ConnectContactData` holds all of the contact information for the user that invoked the Connect event. @@ -62,6 +76,12 @@ pub struct ConnectContactData { #[serde(default)] #[serde(rename = "InstanceARN")] pub instance_arn: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `ConnectEndpoint` represents routing information. @@ -74,6 +94,12 @@ pub struct ConnectEndpoint { #[serde(default)] #[serde(rename = "Type")] pub type_: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `ConnectQueue` represents a queue object. @@ -86,6 +112,12 @@ pub struct ConnectQueue { #[serde(default)] #[serde(rename = "ARN")] pub arn: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } pub type ConnectResponse = HashMap; diff --git a/lambda-events/src/event/documentdb/events/commom_types.rs b/lambda-events/src/event/documentdb/events/commom_types.rs index 5d1bdc19..4f4f9f20 100644 --- a/lambda-events/src/event/documentdb/events/commom_types.rs +++ b/lambda-events/src/event/documentdb/events/commom_types.rs @@ -11,34 +11,70 @@ pub struct DatabaseCollection { db: String, #[serde(default)] coll: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] pub struct DocumentId { #[serde(rename = "_data")] pub data: String, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] pub struct DocumentKeyIdOid { #[serde(rename = "$oid")] pub oid: String, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] pub struct DocumentKeyId { #[serde(rename = "_id")] pub id: DocumentKeyIdOid, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] pub struct InnerTimestamp { t: usize, i: usize, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] pub struct Timestamp { #[serde(rename = "$timestamp")] pub timestamp: InnerTimestamp, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } diff --git a/lambda-events/src/event/documentdb/events/delete_event.rs b/lambda-events/src/event/documentdb/events/delete_event.rs index 7761d62f..b1f6f18b 100644 --- a/lambda-events/src/event/documentdb/events/delete_event.rs +++ b/lambda-events/src/event/documentdb/events/delete_event.rs @@ -1,4 +1,8 @@ use serde::{Deserialize, Serialize}; +#[cfg(feature = "catch-all-fields")] +use serde_json::Value; +#[cfg(feature = "catch-all-fields")] +use std::collections::HashMap; use super::commom_types::{AnyDocument, DatabaseCollection, DocumentId, DocumentKeyId, Timestamp}; @@ -17,4 +21,10 @@ pub struct ChangeDeleteEvent { // operation_type: String, #[serde(default)] txn_number: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } diff --git a/lambda-events/src/event/documentdb/events/drop_database_event.rs b/lambda-events/src/event/documentdb/events/drop_database_event.rs index 273c897c..55e8aea5 100644 --- a/lambda-events/src/event/documentdb/events/drop_database_event.rs +++ b/lambda-events/src/event/documentdb/events/drop_database_event.rs @@ -1,4 +1,8 @@ use serde::{Deserialize, Serialize}; +#[cfg(feature = "catch-all-fields")] +use serde_json::Value; +#[cfg(feature = "catch-all-fields")] +use std::collections::HashMap; use super::commom_types::{AnyDocument, DatabaseCollection, DocumentId, Timestamp}; @@ -16,4 +20,10 @@ pub struct ChangeDropDatabaseEvent { // operation_type: String, #[serde(default)] txn_number: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } diff --git a/lambda-events/src/event/documentdb/events/drop_event.rs b/lambda-events/src/event/documentdb/events/drop_event.rs index a6f92934..9d6f812a 100644 --- a/lambda-events/src/event/documentdb/events/drop_event.rs +++ b/lambda-events/src/event/documentdb/events/drop_event.rs @@ -1,5 +1,9 @@ use super::commom_types::{AnyDocument, DatabaseCollection, DocumentId, Timestamp}; use serde::{Deserialize, Serialize}; +#[cfg(feature = "catch-all-fields")] +use serde_json::Value; +#[cfg(feature = "catch-all-fields")] +use std::collections::HashMap; #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] #[serde(rename_all = "camelCase")] @@ -15,4 +19,10 @@ pub struct ChangeDropEvent { // operation_type: String, #[serde(default)] txn_number: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } diff --git a/lambda-events/src/event/documentdb/events/insert_event.rs b/lambda-events/src/event/documentdb/events/insert_event.rs index 2f4df397..1a8abef9 100644 --- a/lambda-events/src/event/documentdb/events/insert_event.rs +++ b/lambda-events/src/event/documentdb/events/insert_event.rs @@ -1,4 +1,8 @@ use serde::{Deserialize, Serialize}; +#[cfg(feature = "catch-all-fields")] +use serde_json::Value; +#[cfg(feature = "catch-all-fields")] +use std::collections::HashMap; use super::commom_types::{AnyDocument, DatabaseCollection, DocumentId, DocumentKeyId, Timestamp}; @@ -17,4 +21,10 @@ pub struct ChangeInsertEvent { //operation_type: String, #[serde(default)] txn_number: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } diff --git a/lambda-events/src/event/documentdb/events/invalidate_event.rs b/lambda-events/src/event/documentdb/events/invalidate_event.rs index 47469ff9..dbc2c9d4 100644 --- a/lambda-events/src/event/documentdb/events/invalidate_event.rs +++ b/lambda-events/src/event/documentdb/events/invalidate_event.rs @@ -1,4 +1,8 @@ use serde::{Deserialize, Serialize}; +#[cfg(feature = "catch-all-fields")] +use serde_json::Value; +#[cfg(feature = "catch-all-fields")] +use std::collections::HashMap; use super::commom_types::{DocumentId, Timestamp}; @@ -10,4 +14,10 @@ pub struct ChangeInvalidateEvent { #[serde(default)] cluster_time: Option, // operation_type: String, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } diff --git a/lambda-events/src/event/documentdb/events/rename_event.rs b/lambda-events/src/event/documentdb/events/rename_event.rs index 8bc250fb..6c90ce18 100644 --- a/lambda-events/src/event/documentdb/events/rename_event.rs +++ b/lambda-events/src/event/documentdb/events/rename_event.rs @@ -1,4 +1,8 @@ use serde::{Deserialize, Serialize}; +#[cfg(feature = "catch-all-fields")] +use serde_json::Value; +#[cfg(feature = "catch-all-fields")] +use std::collections::HashMap; use super::commom_types::{AnyDocument, DatabaseCollection, DocumentId, Timestamp}; @@ -18,4 +22,10 @@ pub struct ChangeRenameEvent { #[serde(default)] txn_number: Option, to: DatabaseCollection, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } diff --git a/lambda-events/src/event/documentdb/events/replace_event.rs b/lambda-events/src/event/documentdb/events/replace_event.rs index c253e272..12339184 100644 --- a/lambda-events/src/event/documentdb/events/replace_event.rs +++ b/lambda-events/src/event/documentdb/events/replace_event.rs @@ -1,4 +1,8 @@ use serde::{Deserialize, Serialize}; +#[cfg(feature = "catch-all-fields")] +use serde_json::Value; +#[cfg(feature = "catch-all-fields")] +use std::collections::HashMap; use super::commom_types::{AnyDocument, DatabaseCollection, DocumentId, DocumentKeyId, Timestamp}; @@ -17,4 +21,10 @@ pub struct ChangeReplaceEvent { // operation_type: String, #[serde(default)] txn_number: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } diff --git a/lambda-events/src/event/documentdb/events/update_event.rs b/lambda-events/src/event/documentdb/events/update_event.rs index 04369cf0..7a194e57 100644 --- a/lambda-events/src/event/documentdb/events/update_event.rs +++ b/lambda-events/src/event/documentdb/events/update_event.rs @@ -1,4 +1,8 @@ use serde::{Deserialize, Serialize}; +#[cfg(feature = "catch-all-fields")] +use serde_json::Value; +#[cfg(feature = "catch-all-fields")] +use std::collections::HashMap; use super::commom_types::{AnyDocument, DatabaseCollection, DocumentId, DocumentKeyId, Timestamp}; @@ -7,6 +11,12 @@ use super::commom_types::{AnyDocument, DatabaseCollection, DocumentId, DocumentK pub struct UpdateTruncate { field: String, new_size: usize, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -15,6 +25,12 @@ pub struct UpdateDescription { removed_fields: Vec, truncated_arrays: Vec, updated_fields: AnyDocument, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -33,4 +49,10 @@ pub struct ChangeUpdateEvent { update_description: UpdateDescription, #[serde(default)] txn_number: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } diff --git a/lambda-events/src/event/documentdb/mod.rs b/lambda-events/src/event/documentdb/mod.rs index 67f7c9ad..3db4adad 100644 --- a/lambda-events/src/event/documentdb/mod.rs +++ b/lambda-events/src/event/documentdb/mod.rs @@ -6,6 +6,10 @@ use self::events::{ replace_event::ChangeReplaceEvent, update_event::ChangeUpdateEvent, }; use serde::{Deserialize, Serialize}; +#[cfg(feature = "catch-all-fields")] +use serde_json::Value; +#[cfg(feature = "catch-all-fields")] +use std::collections::HashMap; #[derive(Clone, Debug, Deserialize, Eq, PartialEq, Serialize)] #[serde(tag = "operationType", rename_all = "camelCase")] @@ -23,6 +27,12 @@ pub enum ChangeEvent { #[derive(Clone, Debug, Deserialize, Eq, PartialEq, Serialize)] pub struct DocumentDbInnerEvent { pub event: ChangeEvent, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -33,6 +43,12 @@ pub struct DocumentDbEvent { pub events: Vec, #[serde(default)] pub event_source: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[cfg(test)] diff --git a/lambda-events/src/event/dynamodb/mod.rs b/lambda-events/src/event/dynamodb/mod.rs index 91380f82..b05e2baf 100644 --- a/lambda-events/src/event/dynamodb/mod.rs +++ b/lambda-events/src/event/dynamodb/mod.rs @@ -5,6 +5,10 @@ use crate::{ }; use chrono::{DateTime, Utc}; use serde::{Deserialize, Serialize}; +#[cfg(feature = "catch-all-fields")] +use serde_json::Value; +#[cfg(feature = "catch-all-fields")] +use std::collections::HashMap; use std::fmt; #[cfg(test)] @@ -115,6 +119,12 @@ impl fmt::Display for KeyType { pub struct Event { #[serde(rename = "Records")] pub records: Vec, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `TimeWindowEvent` represents an Amazon Dynamodb event when using time windows @@ -128,6 +138,12 @@ pub struct TimeWindowEvent { #[serde(rename = "TimeWindowProperties")] #[serde(flatten)] pub time_window_properties: TimeWindowProperties, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `TimeWindowEventResponse` is the outer structure to report batch item failures for DynamoDBTimeWindowEvent. @@ -138,6 +154,12 @@ pub struct TimeWindowEventResponse { #[serde(flatten)] pub time_window_event_response_properties: TimeWindowEventResponseProperties, pub batch_item_failures: Vec, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// EventRecord stores information about each record of a DynamoDb stream event @@ -198,6 +220,12 @@ pub struct EventRecord { /// The DynamoDB table that this event was recorded for. #[serde(default)] pub table_name: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -207,6 +235,12 @@ pub struct UserIdentity { pub type_: String, #[serde(default)] pub principal_id: String, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `DynamoDbStreamRecord` represents a description of a single data modification that was performed on an item @@ -248,6 +282,12 @@ pub struct StreamRecord { #[serde(default)] #[serde(rename = "StreamViewType")] pub stream_view_type: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[cfg(test)] diff --git a/lambda-events/src/event/ecr_scan/mod.rs b/lambda-events/src/event/ecr_scan/mod.rs index 5502e81a..52ae57d5 100644 --- a/lambda-events/src/event/ecr_scan/mod.rs +++ b/lambda-events/src/event/ecr_scan/mod.rs @@ -1,4 +1,8 @@ use serde::{Deserialize, Serialize}; +#[cfg(feature = "catch-all-fields")] +use serde_json::Value; +#[cfg(feature = "catch-all-fields")] +use std::collections::HashMap; #[derive(Debug, Clone, Eq, PartialEq, Deserialize, Serialize)] #[serde(rename_all = "camelCase")] @@ -20,6 +24,12 @@ pub struct EcrScanEvent { #[serde(default)] pub account: Option, pub detail: EcrScanEventDetailType, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Debug, Clone, Eq, PartialEq, Deserialize, Serialize)] @@ -38,6 +48,12 @@ pub struct EcrScanEventDetailType { pub image_digest: Option, #[serde(rename = "image-tags")] pub image_tags: Vec, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Debug, Clone, Eq, PartialEq, Deserialize, Serialize)] @@ -61,6 +77,12 @@ pub struct EcrScanEventFindingSeverityCounts { #[serde(default)] #[serde(rename = "UNDEFINED")] pub undefined: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[cfg(test)] diff --git a/lambda-events/src/event/eventbridge/mod.rs b/lambda-events/src/event/eventbridge/mod.rs index 5ed14840..d0fcfcca 100644 --- a/lambda-events/src/event/eventbridge/mod.rs +++ b/lambda-events/src/event/eventbridge/mod.rs @@ -1,6 +1,8 @@ use chrono::{DateTime, Utc}; use serde::{de::DeserializeOwned, Deserialize, Serialize}; use serde_json::Value; +#[cfg(feature = "catch-all-fields")] +use std::collections::HashMap; /// Parse EventBridge events. /// Deserialize the event detail into a structure that's `DeserializeOwned`. @@ -30,6 +32,12 @@ where pub resources: Option>, #[serde(bound = "")] pub detail: T1, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[cfg(test)] diff --git a/lambda-events/src/event/firehose/mod.rs b/lambda-events/src/event/firehose/mod.rs index 6a0a13fd..105a3629 100644 --- a/lambda-events/src/event/firehose/mod.rs +++ b/lambda-events/src/event/firehose/mod.rs @@ -3,6 +3,8 @@ use crate::{ encodings::{Base64Data, MillisecondTimestamp}, }; use serde::{Deserialize, Serialize}; +#[cfg(feature = "catch-all-fields")] +use serde_json::Value; use std::collections::HashMap; /// `KinesisFirehoseEvent` represents the input event from Amazon Kinesis Firehose. It is used as the input parameter. @@ -20,6 +22,12 @@ pub struct KinesisFirehoseEvent { #[serde(default)] pub region: Option, pub records: Vec, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Debug, Clone, Eq, PartialEq, Deserialize, Serialize)] @@ -31,12 +39,24 @@ pub struct KinesisFirehoseEventRecord { pub data: Base64Data, #[serde(rename = "kinesisRecordMetadata")] pub kinesis_firehose_record_metadata: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Debug, Clone, Eq, PartialEq, Deserialize, Serialize)] #[serde(rename_all = "camelCase")] pub struct KinesisFirehoseResponse { pub records: Vec, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Debug, Clone, Eq, PartialEq, Deserialize, Serialize)] @@ -49,6 +69,12 @@ pub struct KinesisFirehoseResponseRecord { pub result: Option, pub data: Base64Data, pub metadata: KinesisFirehoseResponseRecordMetadata, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Debug, Clone, Eq, PartialEq, Deserialize, Serialize)] @@ -57,6 +83,12 @@ pub struct KinesisFirehoseResponseRecordMetadata { #[serde(deserialize_with = "deserialize_lambda_map")] #[serde(default)] pub partition_keys: HashMap, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Debug, Clone, Eq, PartialEq, Deserialize, Serialize)] @@ -70,6 +102,12 @@ pub struct KinesisFirehoseRecordMetadata { pub sequence_number: Option, pub subsequence_number: i64, pub approximate_arrival_timestamp: MillisecondTimestamp, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[cfg(test)] diff --git a/lambda-events/src/event/iam/mod.rs b/lambda-events/src/event/iam/mod.rs index 36f59c7b..99bb9d6f 100644 --- a/lambda-events/src/event/iam/mod.rs +++ b/lambda-events/src/event/iam/mod.rs @@ -1,3 +1,5 @@ +#[cfg(feature = "catch-all-fields")] +use serde_json::Value; use std::{borrow::Cow, collections::HashMap, fmt}; use serde::{ @@ -12,6 +14,12 @@ pub struct IamPolicyDocument { #[serde(default)] pub version: Option, pub statement: Vec, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `IamPolicyStatement` represents one statement from IAM policy with action, effect and resource @@ -27,6 +35,12 @@ pub struct IamPolicyStatement { #[serde(default, deserialize_with = "deserialize_policy_condition")] #[serde(skip_serializing_if = "Option::is_none")] pub condition: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } pub type IamPolicyCondition = HashMap>>; @@ -178,6 +192,8 @@ mod tests { effect: IamPolicyEffect::Allow, resource: vec!["some:resource".into()], condition: None, + #[cfg(feature = "catch-all-fields")] + other: Default::default(), }; let policy_ser = serde_json::to_value(policy).unwrap(); diff --git a/lambda-events/src/event/iot/mod.rs b/lambda-events/src/event/iot/mod.rs index 07352120..60f8531f 100644 --- a/lambda-events/src/event/iot/mod.rs +++ b/lambda-events/src/event/iot/mod.rs @@ -1,6 +1,10 @@ use crate::{custom_serde::serialize_headers, encodings::Base64Data, iam::IamPolicyDocument}; use http::HeaderMap; use serde::{Deserialize, Serialize}; +#[cfg(feature = "catch-all-fields")] +use serde_json::Value; +#[cfg(feature = "catch-all-fields")] +use std::collections::HashMap; /// `IoTCoreCustomAuthorizerRequest` represents the request to an IoT Core custom authorizer. /// See @@ -13,6 +17,12 @@ pub struct IoTCoreCustomAuthorizerRequest { pub protocols: Vec, pub protocol_data: Option, pub connection_metadata: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Debug, Clone, Eq, PartialEq, Deserialize, Serialize)] @@ -21,6 +31,12 @@ pub struct IoTCoreProtocolData { pub tls: Option, pub http: Option, pub mqtt: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Debug, Clone, Eq, PartialEq, Deserialize, Serialize)] @@ -28,6 +44,12 @@ pub struct IoTCoreProtocolData { pub struct IoTCoreTlsContext { #[serde(default)] pub server_name: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Debug, Clone, Eq, PartialEq, Deserialize, Serialize)] @@ -38,6 +60,12 @@ pub struct IoTCoreHttpContext { pub headers: HeaderMap, #[serde(default)] pub query_string: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Debug, Clone, Eq, PartialEq, Deserialize, Serialize)] @@ -48,6 +76,12 @@ pub struct IoTCoreMqttContext { pub password: Base64Data, #[serde(default)] pub username: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Debug, Clone, Eq, PartialEq, Deserialize, Serialize)] @@ -55,6 +89,12 @@ pub struct IoTCoreMqttContext { pub struct IoTCoreConnectionMetadata { #[serde(default)] pub id: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `IoTCoreCustomAuthorizerResponse` represents the response from an IoT Core custom authorizer. @@ -68,6 +108,12 @@ pub struct IoTCoreCustomAuthorizerResponse { pub disconnect_after_in_seconds: u32, pub refresh_after_in_seconds: u32, pub policy_documents: Vec>, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[cfg(test)] diff --git a/lambda-events/src/event/iot_1_click/mod.rs b/lambda-events/src/event/iot_1_click/mod.rs index bf010b50..429f9a6f 100644 --- a/lambda-events/src/event/iot_1_click/mod.rs +++ b/lambda-events/src/event/iot_1_click/mod.rs @@ -1,4 +1,6 @@ use serde::{Deserialize, Serialize}; +#[cfg(feature = "catch-all-fields")] +use serde_json::Value; use std::collections::HashMap; use crate::custom_serde::deserialize_lambda_map; @@ -11,12 +13,24 @@ pub struct IoTOneClickEvent { pub device_event: IoTOneClickDeviceEvent, pub device_info: IoTOneClickDeviceInfo, pub placement_info: IoTOneClickPlacementInfo, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Debug, Clone, Eq, PartialEq, Deserialize, Serialize)] #[serde(rename_all = "camelCase")] pub struct IoTOneClickDeviceEvent { pub button_clicked: IoTOneClickButtonClicked, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Debug, Clone, Eq, PartialEq, Deserialize, Serialize)] @@ -26,6 +40,12 @@ pub struct IoTOneClickButtonClicked { pub click_type: Option, #[serde(default)] pub reported_time: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Debug, Clone, PartialEq, Deserialize, Serialize)] @@ -39,6 +59,12 @@ pub struct IoTOneClickDeviceInfo { #[serde(default)] pub device_id: Option, pub remaining_life: f64, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Debug, Clone, Eq, PartialEq, Deserialize, Serialize)] @@ -54,6 +80,12 @@ pub struct IoTOneClickPlacementInfo { #[serde(deserialize_with = "deserialize_lambda_map")] #[serde(default)] pub devices: HashMap, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[cfg(test)] diff --git a/lambda-events/src/event/iot_button/mod.rs b/lambda-events/src/event/iot_button/mod.rs index 2d2e4627..a571ca9e 100644 --- a/lambda-events/src/event/iot_button/mod.rs +++ b/lambda-events/src/event/iot_button/mod.rs @@ -1,4 +1,8 @@ use serde::{Deserialize, Serialize}; +#[cfg(feature = "catch-all-fields")] +use serde_json::Value; +#[cfg(feature = "catch-all-fields")] +use std::collections::HashMap; #[derive(Debug, Clone, Eq, PartialEq, Deserialize, Serialize)] #[serde(rename_all = "camelCase")] @@ -9,6 +13,12 @@ pub struct IoTButtonEvent { pub click_type: Option, #[serde(default)] pub battery_voltage: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[cfg(test)] diff --git a/lambda-events/src/event/iot_deprecated/mod.rs b/lambda-events/src/event/iot_deprecated/mod.rs index 12c1df99..2c359b05 100644 --- a/lambda-events/src/event/iot_deprecated/mod.rs +++ b/lambda-events/src/event/iot_deprecated/mod.rs @@ -1,5 +1,9 @@ use crate::iot::*; use serde::{Deserialize, Serialize}; +#[cfg(feature = "catch-all-fields")] +use serde_json::Value; +#[cfg(feature = "catch-all-fields")] +use std::collections::HashMap; /// `IoTCustomAuthorizerRequest` contains data coming in to a custom IoT device gateway authorizer function. /// Deprecated: Use IoTCoreCustomAuthorizerRequest instead. `IoTCustomAuthorizerRequest` does not correctly model the request schema @@ -14,6 +18,12 @@ pub struct IoTCustomAuthorizerRequest { pub authorization_token: Option, #[serde(default)] pub token_signature: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } pub type IoTHttpContext = IoTCoreHttpContext; @@ -33,4 +43,10 @@ pub struct IoTCustomAuthorizerResponse { pub disconnect_after_in_seconds: i32, pub refresh_after_in_seconds: i32, pub policy_documents: Vec, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } diff --git a/lambda-events/src/event/kafka/mod.rs b/lambda-events/src/event/kafka/mod.rs index 27a1e921..eb9069fd 100644 --- a/lambda-events/src/event/kafka/mod.rs +++ b/lambda-events/src/event/kafka/mod.rs @@ -1,5 +1,7 @@ use crate::{custom_serde::deserialize_lambda_map, encodings::MillisecondTimestamp}; use serde::{Deserialize, Serialize}; +#[cfg(feature = "catch-all-fields")] +use serde_json::Value; use std::collections::HashMap; #[derive(Debug, Clone, Eq, PartialEq, Deserialize, Serialize)] @@ -14,6 +16,12 @@ pub struct KafkaEvent { pub records: HashMap>, #[serde(default)] pub bootstrap_servers: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Debug, Clone, Eq, PartialEq, Deserialize, Serialize)] @@ -29,6 +37,12 @@ pub struct KafkaRecord { pub key: Option, pub value: Option, pub headers: Vec>>, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[cfg(test)] diff --git a/lambda-events/src/event/kinesis/analytics.rs b/lambda-events/src/event/kinesis/analytics.rs index 74c95606..918a2ab5 100644 --- a/lambda-events/src/event/kinesis/analytics.rs +++ b/lambda-events/src/event/kinesis/analytics.rs @@ -1,5 +1,9 @@ use crate::encodings::Base64Data; use serde::{Deserialize, Serialize}; +#[cfg(feature = "catch-all-fields")] +use serde_json::Value; +#[cfg(feature = "catch-all-fields")] +use std::collections::HashMap; #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] #[serde(rename_all = "camelCase")] @@ -9,6 +13,12 @@ pub struct KinesisAnalyticsOutputDeliveryEvent { #[serde(default)] pub application_arn: Option, pub records: Vec, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -17,12 +27,24 @@ pub struct KinesisAnalyticsOutputDeliveryEventRecord { #[serde(default)] pub record_id: Option, pub data: Base64Data, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] #[serde(rename_all = "camelCase")] pub struct KinesisAnalyticsOutputDeliveryResponse { pub records: Vec, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -33,4 +55,10 @@ pub struct KinesisAnalyticsOutputDeliveryResponseRecord { /// possible values include Ok and DeliveryFailed #[serde(default)] pub result: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } diff --git a/lambda-events/src/event/kinesis/event.rs b/lambda-events/src/event/kinesis/event.rs index a67da850..1eea4c8e 100644 --- a/lambda-events/src/event/kinesis/event.rs +++ b/lambda-events/src/event/kinesis/event.rs @@ -3,12 +3,22 @@ use crate::{ time_window::{TimeWindowEventResponseProperties, TimeWindowProperties}, }; use serde::{Deserialize, Serialize}; +#[cfg(feature = "catch-all-fields")] +use serde_json::Value; +#[cfg(feature = "catch-all-fields")] +use std::collections::HashMap; #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] #[serde(rename_all = "camelCase")] pub struct KinesisEvent { #[serde(rename = "Records")] pub records: Vec, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `KinesisTimeWindowEvent` represents an Amazon Dynamodb event when using time windows @@ -22,6 +32,12 @@ pub struct KinesisTimeWindowEvent { #[serde(rename = "TimeWindowProperties")] #[serde(flatten)] pub time_window_properties: TimeWindowProperties, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `KinesisTimeWindowEventResponse` is the outer structure to report batch item failures for KinesisTimeWindowEvent. @@ -32,6 +48,12 @@ pub struct KinesisTimeWindowEventResponse { #[serde(flatten)] pub time_window_event_response_properties: TimeWindowEventResponseProperties, // pub batch_item_failures: Vec, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -57,6 +79,12 @@ pub struct KinesisEventRecord { #[serde(default)] pub invoke_identity_arn: Option, pub kinesis: KinesisRecord, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -72,6 +100,12 @@ pub struct KinesisRecord { pub sequence_number: String, #[serde(default)] pub kinesis_schema_version: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] diff --git a/lambda-events/src/event/lambda_function_urls/mod.rs b/lambda-events/src/event/lambda_function_urls/mod.rs index 37ddfe39..227b8a17 100644 --- a/lambda-events/src/event/lambda_function_urls/mod.rs +++ b/lambda-events/src/event/lambda_function_urls/mod.rs @@ -1,5 +1,7 @@ use http::HeaderMap; use serde::{Deserialize, Serialize}; +#[cfg(feature = "catch-all-fields")] +use serde_json::Value; use std::collections::HashMap; use crate::custom_serde::{deserialize_lambda_map, serialize_headers}; @@ -25,6 +27,12 @@ pub struct LambdaFunctionUrlRequest { pub request_context: LambdaFunctionUrlRequestContext, pub body: Option, pub is_base64_encoded: bool, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `LambdaFunctionUrlRequestContext` contains the information to identify the AWS account and resources invoking the Lambda function. @@ -50,6 +58,12 @@ pub struct LambdaFunctionUrlRequestContext { pub time: Option, pub time_epoch: i64, pub http: LambdaFunctionUrlRequestContextHttpDescription, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `LambdaFunctionUrlRequestContextAuthorizerDescription` contains authorizer information for the request context. @@ -57,6 +71,12 @@ pub struct LambdaFunctionUrlRequestContext { #[serde(rename_all = "camelCase")] pub struct LambdaFunctionUrlRequestContextAuthorizerDescription { pub iam: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `LambdaFunctionUrlRequestContextAuthorizerIamDescription` contains IAM information for the request context. @@ -73,6 +93,12 @@ pub struct LambdaFunctionUrlRequestContextAuthorizerIamDescription { pub user_arn: Option, #[serde(default)] pub user_id: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `LambdaFunctionUrlRequestContextHttpDescription` contains HTTP information for the request context. @@ -89,6 +115,12 @@ pub struct LambdaFunctionUrlRequestContextHttpDescription { pub source_ip: Option, #[serde(default)] pub user_agent: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `LambdaFunctionUrlResponse` configures the HTTP response to be returned by Lambda Function URL for the request. @@ -103,4 +135,10 @@ pub struct LambdaFunctionUrlResponse { pub body: Option, pub is_base64_encoded: bool, pub cookies: Vec, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } diff --git a/lambda-events/src/event/lex/mod.rs b/lambda-events/src/event/lex/mod.rs index d8f9403c..b6db41d1 100644 --- a/lambda-events/src/event/lex/mod.rs +++ b/lambda-events/src/event/lex/mod.rs @@ -1,4 +1,6 @@ use serde::{Deserialize, Serialize}; +#[cfg(feature = "catch-all-fields")] +use serde_json::Value; use std::collections::HashMap; use crate::custom_serde::deserialize_lambda_map; @@ -20,6 +22,12 @@ pub struct LexEvent { pub alternative_intents: Option>, /// Deprecated: the DialogAction field is never populated by Lex events pub dialog_action: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Debug, Clone, Eq, PartialEq, Deserialize, Serialize)] @@ -28,6 +36,12 @@ pub struct LexBot { pub name: Option, pub alias: Option, pub version: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Debug, Clone, PartialEq, Deserialize, Serialize)] @@ -40,6 +54,12 @@ pub struct LexCurrentIntent { #[serde(default)] pub slot_details: HashMap, pub confirmation_status: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Debug, Clone, PartialEq, Deserialize, Serialize)] @@ -52,6 +72,12 @@ pub struct LexAlternativeIntents { #[serde(default)] pub slot_details: HashMap, pub confirmation_status: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Debug, Clone, Eq, PartialEq, Deserialize, Serialize)] @@ -59,6 +85,12 @@ pub struct LexAlternativeIntents { pub struct SlotDetail { pub resolutions: Option>>, pub original_value: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Debug, Clone, Eq, PartialEq, Deserialize, Serialize)] @@ -73,6 +105,12 @@ pub struct LexDialogAction { pub slots: Option, pub slot_to_elicit: Option, pub response_card: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } pub type SessionAttributes = HashMap; @@ -84,6 +122,12 @@ pub type Slots = HashMap>; pub struct LexResponse { pub session_attributes: SessionAttributes, pub dialog_action: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Debug, Clone, Eq, PartialEq, Deserialize, Serialize)] @@ -92,6 +136,12 @@ pub struct LexResponseCard { pub version: Option, pub content_type: Option, pub generic_attachments: Option>, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Debug, Clone, Eq, PartialEq, Deserialize, Serialize)] @@ -102,6 +152,12 @@ pub struct Attachment { pub image_url: Option, pub attachment_link_url: Option, pub buttons: Option>>, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[cfg(test)] diff --git a/lambda-events/src/event/rabbitmq/mod.rs b/lambda-events/src/event/rabbitmq/mod.rs index 23327276..c44f79d7 100644 --- a/lambda-events/src/event/rabbitmq/mod.rs +++ b/lambda-events/src/event/rabbitmq/mod.rs @@ -15,6 +15,12 @@ pub struct RabbitMqEvent { #[serde(default)] #[serde(rename = "rmqMessagesByQueue")] pub messages_by_queue: HashMap>, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Debug, Clone, Eq, PartialEq, Deserialize, Serialize)] @@ -24,6 +30,12 @@ pub struct RabbitMqMessage { #[serde(default)] pub data: Option, pub redelivered: bool, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Debug, Clone, Eq, PartialEq, Deserialize, Serialize)] @@ -56,6 +68,12 @@ where pub app_id: Option, pub cluster_id: Option, pub body_size: u64, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[cfg(test)] diff --git a/lambda-events/src/event/s3/batch_job.rs b/lambda-events/src/event/s3/batch_job.rs index e3eb691e..c3463ed2 100644 --- a/lambda-events/src/event/s3/batch_job.rs +++ b/lambda-events/src/event/s3/batch_job.rs @@ -1,4 +1,8 @@ use serde::{Deserialize, Serialize}; +#[cfg(feature = "catch-all-fields")] +use serde_json::Value; +#[cfg(feature = "catch-all-fields")] +use std::collections::HashMap; /// `S3BatchJobEvent` encapsulates the detail of a s3 batch job #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -10,6 +14,12 @@ pub struct S3BatchJobEvent { pub invocation_id: Option, pub job: S3BatchJob, pub tasks: Vec, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `S3BatchJob` whichs have the job id @@ -18,6 +28,12 @@ pub struct S3BatchJobEvent { pub struct S3BatchJob { #[serde(default)] pub id: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `S3BatchJobTask` represents one task in the s3 batch job and have all task details @@ -32,6 +48,12 @@ pub struct S3BatchJobTask { pub s3_version_id: Option, #[serde(default)] pub s3_bucket_arn: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `S3BatchJobResponse` is the response of a iven s3 batch job with the results @@ -45,6 +67,12 @@ pub struct S3BatchJobResponse { #[serde(default)] pub invocation_id: Option, pub results: Vec, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `S3BatchJobResult` represents the result of a given task @@ -57,4 +85,10 @@ pub struct S3BatchJobResult { pub result_code: Option, #[serde(default)] pub result_string: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } diff --git a/lambda-events/src/event/s3/event.rs b/lambda-events/src/event/s3/event.rs index e062c7d2..5ae1e38f 100644 --- a/lambda-events/src/event/s3/event.rs +++ b/lambda-events/src/event/s3/event.rs @@ -1,5 +1,7 @@ use chrono::{DateTime, Utc}; use serde::{Deserialize, Serialize}; +#[cfg(feature = "catch-all-fields")] +use serde_json::Value; use std::collections::HashMap; use crate::custom_serde::deserialize_lambda_map; @@ -10,6 +12,12 @@ use crate::custom_serde::deserialize_lambda_map; pub struct S3Event { #[serde(rename = "Records")] pub records: Vec, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `S3EventRecord` which wrap record data @@ -32,6 +40,12 @@ pub struct S3EventRecord { #[serde(default)] pub response_elements: HashMap, pub s3: S3Entity, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -39,6 +53,12 @@ pub struct S3EventRecord { pub struct S3UserIdentity { #[serde(default)] pub principal_id: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -47,6 +67,12 @@ pub struct S3RequestParameters { #[serde(default)] #[serde(rename = "sourceIPAddress")] pub source_ip_address: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -59,6 +85,12 @@ pub struct S3Entity { pub configuration_id: Option, pub bucket: S3Bucket, pub object: S3Object, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -70,6 +102,12 @@ pub struct S3Bucket { pub owner_identity: Option, #[serde(default)] pub arn: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -86,6 +124,12 @@ pub struct S3Object { pub e_tag: Option, #[serde(default)] pub sequencer: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[cfg(test)] diff --git a/lambda-events/src/event/s3/object_lambda.rs b/lambda-events/src/event/s3/object_lambda.rs index 1cd7b934..9215ab3f 100644 --- a/lambda-events/src/event/s3/object_lambda.rs +++ b/lambda-events/src/event/s3/object_lambda.rs @@ -24,6 +24,12 @@ where pub user_request: UserRequest, pub user_identity: UserIdentity, pub protocol_version: String, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `GetObjectContext` contains the input and output details @@ -34,6 +40,12 @@ pub struct GetObjectContext { pub input_s3_url: String, pub output_route: String, pub output_token: String, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `HeadObjectContext` @@ -42,6 +54,12 @@ pub struct GetObjectContext { #[serde(rename_all = "camelCase")] pub struct HeadObjectContext { pub input_s3_url: String, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `ListObjectsContext` @@ -50,6 +68,12 @@ pub struct HeadObjectContext { #[serde(rename_all = "camelCase")] pub struct ListObjectsContext { pub input_s3_url: String, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `ListObjectsV2Context` @@ -58,6 +82,12 @@ pub struct ListObjectsContext { #[serde(rename_all = "camelCase")] pub struct ListObjectsV2Context { pub input_s3_url: String, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `Configuration` contains information about the Object Lambda access point @@ -72,6 +102,12 @@ where pub supporting_access_point_arn: String, #[serde(default, bound = "")] pub payload: P, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `UserRequest` contains information about the original call to S3 Object Lambda @@ -82,6 +118,12 @@ pub struct UserRequest { #[serde(deserialize_with = "deserialize_headers", default)] #[serde(serialize_with = "serialize_headers")] pub headers: HeaderMap, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `UserIdentity` contains details about the identity that made the call to S3 Object Lambda @@ -94,6 +136,12 @@ pub struct UserIdentity { pub account_id: String, pub access_key_id: String, pub session_context: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -102,6 +150,12 @@ pub struct SessionContext { pub attributes: HashMap, #[serde(default)] pub session_issuer: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -112,6 +166,12 @@ pub struct SessionIssuer { pub arn: String, pub account_id: String, pub user_name: String, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[cfg(test)] diff --git a/lambda-events/src/event/secretsmanager/mod.rs b/lambda-events/src/event/secretsmanager/mod.rs index 3ed8d238..5dcb4c52 100644 --- a/lambda-events/src/event/secretsmanager/mod.rs +++ b/lambda-events/src/event/secretsmanager/mod.rs @@ -1,4 +1,8 @@ use serde::{Deserialize, Serialize}; +#[cfg(feature = "catch-all-fields")] +use serde_json::Value; +#[cfg(feature = "catch-all-fields")] +use std::collections::HashMap; #[derive(Debug, Clone, Eq, PartialEq, Deserialize, Serialize)] #[serde(rename_all = "PascalCase")] @@ -6,6 +10,12 @@ pub struct SecretsManagerSecretRotationEvent { pub step: String, pub secret_id: String, pub client_request_token: String, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[cfg(test)] diff --git a/lambda-events/src/event/ses/mod.rs b/lambda-events/src/event/ses/mod.rs index 2a60957a..1b21a75a 100644 --- a/lambda-events/src/event/ses/mod.rs +++ b/lambda-events/src/event/ses/mod.rs @@ -1,5 +1,9 @@ use chrono::{DateTime, Utc}; use serde::{Deserialize, Serialize}; +#[cfg(feature = "catch-all-fields")] +use serde_json::Value; +#[cfg(feature = "catch-all-fields")] +use std::collections::HashMap; /// `SimpleEmailEvent` is the outer structure of an event sent via SES. #[derive(Debug, Clone, Eq, PartialEq, Deserialize, Serialize)] @@ -7,6 +11,12 @@ use serde::{Deserialize, Serialize}; pub struct SimpleEmailEvent { #[serde(rename = "Records")] pub records: Vec, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Debug, Clone, Eq, PartialEq, Deserialize, Serialize)] @@ -17,6 +27,12 @@ pub struct SimpleEmailRecord { #[serde(default)] pub event_source: Option, pub ses: SimpleEmailService, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Debug, Clone, Eq, PartialEq, Deserialize, Serialize)] @@ -25,6 +41,12 @@ pub struct SimpleEmailService { pub mail: SimpleEmailMessage, pub receipt: SimpleEmailReceipt, pub content: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Debug, Clone, Eq, PartialEq, Deserialize, Serialize)] @@ -39,6 +61,12 @@ pub struct SimpleEmailMessage { pub headers_truncated: bool, #[serde(default)] pub message_id: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Debug, Clone, Eq, PartialEq, Deserialize, Serialize)] @@ -55,6 +83,12 @@ pub struct SimpleEmailReceipt { pub virus_verdict: SimpleEmailVerdict, pub action: SimpleEmailReceiptAction, pub processing_time_millis: i64, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Debug, Clone, Eq, PartialEq, Deserialize, Serialize)] @@ -64,6 +98,12 @@ pub struct SimpleEmailHeader { pub name: Option, #[serde(default)] pub value: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Debug, Clone, Eq, PartialEq, Deserialize, Serialize)] @@ -79,6 +119,12 @@ pub struct SimpleEmailCommonHeaders { pub date: Option, #[serde(default)] pub subject: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `SimpleEmailReceiptAction` is a logical union of fields present in all action @@ -100,6 +146,12 @@ pub struct SimpleEmailReceiptAction { pub invocation_type: Option, pub function_arn: Option, pub organization_arn: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Debug, Clone, Eq, PartialEq, Deserialize, Serialize)] @@ -107,6 +159,12 @@ pub struct SimpleEmailReceiptAction { pub struct SimpleEmailVerdict { #[serde(default)] pub status: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } pub type SimpleEmailDispositionValue = String; @@ -116,6 +174,12 @@ pub type SimpleEmailDispositionValue = String; #[serde(rename_all = "camelCase")] pub struct SimpleEmailDisposition { pub disposition: SimpleEmailDispositionValue, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[cfg(test)] diff --git a/lambda-events/src/event/sns/mod.rs b/lambda-events/src/event/sns/mod.rs index 0fda569d..7ea20282 100644 --- a/lambda-events/src/event/sns/mod.rs +++ b/lambda-events/src/event/sns/mod.rs @@ -1,5 +1,7 @@ use chrono::{DateTime, Utc}; use serde::{de::DeserializeOwned, Deserialize, Serialize}; +#[cfg(feature = "catch-all-fields")] +use serde_json::Value; use std::collections::HashMap; use crate::custom_serde::{deserialize_lambda_map, deserialize_nullish_boolean}; @@ -11,6 +13,13 @@ use crate::custom_serde::{deserialize_lambda_map, deserialize_nullish_boolean}; #[serde(rename_all = "PascalCase")] pub struct SnsEvent { pub records: Vec, + + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// SnsRecord stores information about each record of a SNS event @@ -28,6 +37,13 @@ pub struct SnsRecord { /// An SNS object representing the SNS message. pub sns: SnsMessage, + + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// SnsMessage stores information about each record of a SNS event @@ -76,6 +92,13 @@ pub struct SnsMessage { #[serde(deserialize_with = "deserialize_lambda_map")] #[serde(default)] pub message_attributes: HashMap, + + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// An alternate `Event` notification event to use alongside `SnsRecordObj` and `SnsMessageObj` if you want to deserialize an object inside your SNS messages rather than getting an `Option` message @@ -86,6 +109,13 @@ pub struct SnsMessage { #[serde(bound(deserialize = "T: DeserializeOwned"))] pub struct SnsEventObj { pub records: Vec>, + + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// Alternative to `SnsRecord`, used alongside `SnsEventObj` and `SnsMessageObj` when deserializing nested objects from within SNS messages) @@ -104,6 +134,13 @@ pub struct SnsRecordObj { /// An SNS object representing the SNS message. pub sns: SnsMessageObj, + + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// Alternate version of `SnsMessage` to use in conjunction with `SnsEventObj` and `SnsRecordObj` for deserializing the message into a struct of type `T` @@ -156,6 +193,13 @@ pub struct SnsMessageObj { #[serde(deserialize_with = "deserialize_lambda_map")] #[serde(default)] pub message_attributes: HashMap, + + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// Structured metadata items (such as timestamps, geospatial data, signatures, and identifiers) about the message. @@ -172,6 +216,13 @@ pub struct MessageAttribute { /// The user-specified message attribute value. #[serde(rename = "Value")] pub value: String, + + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, PartialEq, Serialize)] @@ -188,6 +239,12 @@ pub struct CloudWatchAlarmPayload { pub alarm_arn: String, pub old_state_value: String, pub trigger: CloudWatchAlarmTrigger, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, PartialEq, Serialize)] @@ -208,6 +265,12 @@ pub struct CloudWatchAlarmTrigger { pub unit: Option, #[serde(default)] pub dimensions: Vec, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, PartialEq, Serialize)] @@ -220,6 +283,12 @@ pub struct CloudWatchMetricDataQuery { pub period: Option, #[serde(default, deserialize_with = "deserialize_nullish_boolean")] pub return_data: bool, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, PartialEq, Serialize)] @@ -229,6 +298,12 @@ pub struct CloudWatchMetricStat { pub period: i64, pub stat: String, pub unit: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, PartialEq, Serialize)] @@ -238,12 +313,24 @@ pub struct CloudWatchMetric { pub dimensions: Vec, pub metric_name: Option, pub namespace: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] pub struct CloudWatchDimension { pub name: String, pub value: String, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[cfg(test)] diff --git a/lambda-events/src/event/sqs/mod.rs b/lambda-events/src/event/sqs/mod.rs index 563dda1a..729eff90 100644 --- a/lambda-events/src/event/sqs/mod.rs +++ b/lambda-events/src/event/sqs/mod.rs @@ -1,5 +1,7 @@ use crate::{custom_serde::deserialize_lambda_map, encodings::Base64Data}; use serde::{de::DeserializeOwned, Deserialize, Serialize}; +#[cfg(feature = "catch-all-fields")] +use serde_json::Value; use std::collections::HashMap; /// The Event sent to Lambda from SQS. Contains 1 or more individual SQS Messages @@ -8,6 +10,12 @@ use std::collections::HashMap; pub struct SqsEvent { #[serde(rename = "Records")] pub records: Vec, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// An individual SQS Message, its metadata, and Message Attributes @@ -38,6 +46,12 @@ pub struct SqsMessage { pub event_source: Option, #[serde(default)] pub aws_region: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// Alternative to `SqsEvent` to be used alongside `SqsMessageObj` when you need to deserialize a nested object into a struct of type `T` within the SQS Message rather than just using the raw SQS Message string @@ -48,6 +62,12 @@ pub struct SqsEventObj { #[serde(rename = "Records")] #[serde(bound(deserialize = "T: DeserializeOwned"))] pub records: Vec>, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// Alternative to `SqsMessage` to be used alongside `SqsEventObj` when you need to deserialize a nested object into a struct of type `T` within the SQS Message rather than just using the raw SQS Message string @@ -83,6 +103,12 @@ pub struct SqsMessageObj { pub event_source: Option, #[serde(default)] pub aws_region: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -96,18 +122,36 @@ pub struct SqsMessageAttribute { pub binary_list_values: Vec, #[serde(default)] pub data_type: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] #[serde(rename_all = "camelCase")] pub struct SqsBatchResponse { pub batch_item_failures: Vec, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] #[serde(rename_all = "camelCase")] pub struct BatchItemFailure { pub item_identifier: String, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// The Event sent to Lambda from the SQS API. Contains 1 or more individual SQS Messages @@ -117,6 +161,12 @@ pub struct BatchItemFailure { pub struct SqsApiEventObj { #[serde(bound(deserialize = "T: DeserializeOwned"))] pub messages: Vec>, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// The Event sent to Lambda from SQS API. Contains 1 or more individual SQS Messages @@ -124,6 +174,12 @@ pub struct SqsApiEventObj { #[serde(rename_all = "camelCase")] pub struct SqsApiEvent { pub messages: Vec, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// Alternative to SqsApiEvent to be used alongside `SqsApiMessageObj` when you need to @@ -153,6 +209,12 @@ pub struct SqsApiMessageObj { #[serde(deserialize_with = "deserialize_lambda_map")] #[serde(default)] pub message_attributes: HashMap, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// An individual SQS API Message, its metadata, and Message Attributes @@ -176,6 +238,12 @@ pub struct SqsApiMessage { #[serde(deserialize_with = "deserialize_lambda_map")] #[serde(default)] pub message_attributes: HashMap, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } #[cfg(test)] diff --git a/lambda-events/src/event/streams/mod.rs b/lambda-events/src/event/streams/mod.rs index 9e0fd76f..f9690f5e 100644 --- a/lambda-events/src/event/streams/mod.rs +++ b/lambda-events/src/event/streams/mod.rs @@ -1,10 +1,20 @@ use serde::{Deserialize, Serialize}; +#[cfg(feature = "catch-all-fields")] +use serde_json::Value; +#[cfg(feature = "catch-all-fields")] +use std::collections::HashMap; /// `KinesisEventResponse` is the outer structure to report batch item failures for KinesisEvent. #[derive(Debug, Clone, Eq, PartialEq, Deserialize, Serialize)] #[serde(rename_all = "camelCase")] pub struct KinesisEventResponse { pub batch_item_failures: Vec, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `KinesisBatchItemFailure` is the individual record which failed processing. @@ -13,6 +23,12 @@ pub struct KinesisEventResponse { pub struct KinesisBatchItemFailure { #[serde(default)] pub item_identifier: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `DynamoDbEventResponse` is the outer structure to report batch item failures for DynamoDBEvent. @@ -20,6 +36,12 @@ pub struct KinesisBatchItemFailure { #[serde(rename_all = "camelCase")] pub struct DynamoDbEventResponse { pub batch_item_failures: Vec, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `DynamoDbBatchItemFailure` is the individual record which failed processing. @@ -28,6 +50,12 @@ pub struct DynamoDbEventResponse { pub struct DynamoDbBatchItemFailure { #[serde(default)] pub item_identifier: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `SqsEventResponse` is the outer structure to report batch item failures for SQSEvent. @@ -35,6 +63,12 @@ pub struct DynamoDbBatchItemFailure { #[serde(rename_all = "camelCase")] pub struct SqsEventResponse { pub batch_item_failures: Vec, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } /// `SqsBatchItemFailure` is the individual record which failed processing. @@ -43,4 +77,10 @@ pub struct SqsEventResponse { pub struct SqsBatchItemFailure { #[serde(default)] pub item_identifier: Option, + /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Enabled with Cargo feature `catch-all-fields`. + /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. + #[cfg(feature = "catch-all-fields")] + #[serde(flatten)] + pub other: HashMap, } diff --git a/lambda-events/src/fixtures/example-apigw-request-catch-all.json b/lambda-events/src/fixtures/example-apigw-request-catch-all.json new file mode 100644 index 00000000..fe1955f4 --- /dev/null +++ b/lambda-events/src/fixtures/example-apigw-request-catch-all.json @@ -0,0 +1,137 @@ +{ + "resource": "/{proxy+}", + "path": "/hello/world", + "httpMethod": "POST", + "headers": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "cache-control": "no-cache", + "CloudFront-Forwarded-Proto": "https", + "CloudFront-Is-Desktop-Viewer": "true", + "CloudFront-Is-Mobile-Viewer": "false", + "CloudFront-Is-SmartTV-Viewer": "false", + "CloudFront-Is-Tablet-Viewer": "false", + "CloudFront-Viewer-Country": "US", + "Content-Type": "application/json", + "headerName": "headerValue", + "Host": "gy415nuibc.execute-api.us-east-1.amazonaws.com", + "Postman-Token": "9f583ef0-ed83-4a38-aef3-eb9ce3f7a57f", + "User-Agent": "PostmanRuntime/2.4.5", + "Via": "1.1 d98420743a69852491bbdea73f7680bd.cloudfront.net (CloudFront)", + "X-Amz-Cf-Id": "pn-PWIJc6thYnZm5P0NMgOUglL1DYtl0gdeJky8tqsg8iS_sgsKD1A==", + "X-Forwarded-For": "54.240.196.186, 54.182.214.83", + "X-Forwarded-Port": "443", + "X-Forwarded-Proto": "https" + }, + "multiValueHeaders": { + "Accept": [ + "*/*" + ], + "Accept-Encoding": [ + "gzip, deflate" + ], + "cache-control": [ + "no-cache" + ], + "CloudFront-Forwarded-Proto": [ + "https" + ], + "CloudFront-Is-Desktop-Viewer": [ + "true" + ], + "CloudFront-Is-Mobile-Viewer": [ + "false" + ], + "CloudFront-Is-SmartTV-Viewer": [ + "false" + ], + "CloudFront-Is-Tablet-Viewer": [ + "false" + ], + "CloudFront-Viewer-Country": [ + "US" + ], + "Content-Type": [ + "application/json" + ], + "headerName": [ + "headerValue" + ], + "Host": [ + "gy415nuibc.execute-api.us-east-1.amazonaws.com" + ], + "Postman-Token": [ + "9f583ef0-ed83-4a38-aef3-eb9ce3f7a57f" + ], + "User-Agent": [ + "PostmanRuntime/2.4.5" + ], + "Via": [ + "1.1 d98420743a69852491bbdea73f7680bd.cloudfront.net (CloudFront)" + ], + "X-Amz-Cf-Id": [ + "pn-PWIJc6thYnZm5P0NMgOUglL1DYtl0gdeJky8tqsg8iS_sgsKD1A==" + ], + "X-Forwarded-For": [ + "54.240.196.186, 54.182.214.83" + ], + "X-Forwarded-Port": [ + "443" + ], + "X-Forwarded-Proto": [ + "https" + ] + }, + "queryStringParameters": { + "name": "me" + }, + "multiValueQueryStringParameters": { + "name": [ + "me" + ] + }, + "pathParameters": { + "proxy": "hello/world" + }, + "stageVariables": { + "stageVariableName": "stageVariableValue" + }, + "requestContext": { + "accountId": "12345678912", + "resourceId": "roq9wj", + "path": "/hello/world", + "stage": "testStage", + "domainName": "gy415nuibc.execute-api.us-east-2.amazonaws.com", + "domainPrefix": "y0ne18dixk", + "requestId": "deef4878-7910-11e6-8f14-25afc3e9ae33", + "protocol": "HTTP/1.1", + "identity": { + "cognitoIdentityPoolId": "theCognitoIdentityPoolId", + "accountId": "theAccountId", + "cognitoIdentityId": "theCognitoIdentityId", + "caller": "theCaller", + "apiKey": "theApiKey", + "apiKeyId": "theApiKeyId", + "accessKey": "ANEXAMPLEOFACCESSKEY", + "sourceIp": "192.168.196.186", + "cognitoAuthenticationType": "theCognitoAuthenticationType", + "cognitoAuthenticationProvider": "theCognitoAuthenticationProvider", + "userArn": "theUserArn", + "userAgent": "PostmanRuntime/2.4.5", + "user": "theUser", + "otherField": 2345 + }, + "authorizer": { + "principalId": "admin", + "clientId": 1, + "clientName": "Exata" + }, + "resourcePath": "/{proxy+}", + "httpMethod": "POST", + "requestTime": "15/May/2020:06:01:09 +0000", + "requestTimeEpoch": 1589522469693, + "apiId": "gy415nuibc" + }, + "body": "{\r\n\t\"a\": 1\r\n}", + "otherField": "foobar" +} diff --git a/lambda-http/Cargo.toml b/lambda-http/Cargo.toml index 4498e275..a91880ba 100644 --- a/lambda-http/Cargo.toml +++ b/lambda-http/Cargo.toml @@ -23,6 +23,7 @@ apigw_http = [] apigw_websockets = [] alb = [] pass_through = [] +catch-all-fields = ["aws_lambda_events/catch-all-fields"] tracing = ["lambda_runtime/tracing"] # enables access to the Tracing utilities opentelemetry = ["lambda_runtime/opentelemetry"] # enables access to the OpenTelemetry layers and utilities anyhow = ["lambda_runtime/anyhow"] # enables From for Diagnostic for anyhow error types, see README.md for more info diff --git a/lambda-http/src/response.rs b/lambda-http/src/response.rs index fa8953f2..8b868d25 100644 --- a/lambda-http/src/response.rs +++ b/lambda-http/src/response.rs @@ -77,6 +77,9 @@ impl LambdaResponse { // "multi_value_headers" fields together resulting in duplicate response headers. headers: HeaderMap::new(), multi_value_headers: headers, + // Today, this implementation doesn't provide any additional fields + #[cfg(feature = "catch-all-fields")] + other: Default::default(), }), #[cfg(feature = "apigw_http")] RequestOrigin::ApiGatewayV2 => { @@ -101,6 +104,9 @@ impl LambdaResponse { // are combined with commas and included in the headers field. headers, multi_value_headers: HeaderMap::new(), + // Today, this implementation doesn't provide any additional fields + #[cfg(feature = "catch-all-fields")] + other: Default::default(), }) } #[cfg(feature = "alb")] @@ -118,6 +124,9 @@ impl LambdaResponse { status_code, parts.status.canonical_reason().unwrap_or_default() )), + // Today, this implementation doesn't provide any additional fields + #[cfg(feature = "catch-all-fields")] + other: Default::default(), }), #[cfg(feature = "apigw_websockets")] RequestOrigin::WebSocket => LambdaResponse::ApiGatewayV1(ApiGatewayProxyResponse { @@ -128,6 +137,9 @@ impl LambdaResponse { // "multi_value_headers" fields together resulting in duplicate response headers. headers: HeaderMap::new(), multi_value_headers: headers, + // Today, this implementation doesn't provide any additional fields + #[cfg(feature = "catch-all-fields")] + other: Default::default(), }), #[cfg(feature = "pass_through")] RequestOrigin::PassThrough => { diff --git a/lambda-integration-tests/Cargo.toml b/lambda-integration-tests/Cargo.toml index 0a9836c4..85d5fca6 100644 --- a/lambda-integration-tests/Cargo.toml +++ b/lambda-integration-tests/Cargo.toml @@ -21,6 +21,9 @@ serde = { version = "1.0.204", features = ["derive"] } [dev-dependencies] reqwest = { version = "0.12.5", features = ["blocking"] } +[features] +catch-all-fields = ["aws_lambda_events/catch-all-fields"] + [[bin]] name = "helloworld" path = "src/helloworld.rs" diff --git a/lambda-integration-tests/src/authorizer.rs b/lambda-integration-tests/src/authorizer.rs index 41ddd2d8..b8dc3782 100644 --- a/lambda-integration-tests/src/authorizer.rs +++ b/lambda-integration-tests/src/authorizer.rs @@ -39,15 +39,21 @@ fn allow(method_arn: &str) -> ApiGatewayCustomAuthorizerResponse { resource: vec![method_arn.to_owned()], effect: aws_lambda_events::iam::IamPolicyEffect::Allow, condition: None, + #[cfg(feature = "catch-all-fields")] + other: Default::default(), }; let policy = ApiGatewayCustomAuthorizerPolicy { version: Some("2012-10-17".to_string()), statement: vec![stmt], + #[cfg(feature = "catch-all-fields")] + other: Default::default(), }; ApiGatewayCustomAuthorizerResponse { principal_id: Some("user".to_owned()), policy_document: policy, context: json!({ "hello": "world" }), usage_identifier_key: None, + #[cfg(feature = "catch-all-fields")] + other: Default::default(), } } diff --git a/lambda-integration-tests/src/helloworld.rs b/lambda-integration-tests/src/helloworld.rs index b40cd0c6..c3a74f8c 100644 --- a/lambda-integration-tests/src/helloworld.rs +++ b/lambda-integration-tests/src/helloworld.rs @@ -22,6 +22,8 @@ async fn func(_event: LambdaEvent) -> Result Date: Thu, 17 Jul 2025 10:40:00 -0400 Subject: [PATCH 2/5] switch from HashMap to serde_json::Map Signed-off-by: Craig Disselkoen --- lambda-events/src/event/activemq/mod.rs | 6 +- lambda-events/src/event/alb/mod.rs | 10 +-- lambda-events/src/event/apigw/mod.rs | 62 +++++++------- lambda-events/src/event/appsync/mod.rs | 24 +++--- lambda-events/src/event/autoscaling/mod.rs | 2 +- .../src/event/bedrock_agent_runtime/mod.rs | 12 +-- lambda-events/src/event/chime_bot/mod.rs | 10 +-- lambda-events/src/event/clientvpn/mod.rs | 6 +- lambda-events/src/event/cloudformation/mod.rs | 8 +- .../src/event/cloudformation/provider.rs | 7 +- .../src/event/cloudwatch_alarms/mod.rs | 26 +++--- .../src/event/cloudwatch_events/cloudtrail.rs | 16 ++-- .../src/event/cloudwatch_events/codedeploy.rs | 8 +- .../event/cloudwatch_events/codepipeline.rs | 10 +-- .../src/event/cloudwatch_events/ec2.rs | 4 +- .../src/event/cloudwatch_events/emr.rs | 10 +-- .../src/event/cloudwatch_events/gamelift.rs | 26 +++--- .../src/event/cloudwatch_events/glue.rs | 18 ++-- .../src/event/cloudwatch_events/health.rs | 6 +- .../src/event/cloudwatch_events/kms.rs | 4 +- .../src/event/cloudwatch_events/macie.rs | 36 ++++---- .../src/event/cloudwatch_events/mod.rs | 4 +- .../src/event/cloudwatch_events/opsworks.rs | 10 +-- .../src/event/cloudwatch_events/signin.rs | 10 +-- .../src/event/cloudwatch_events/sms.rs | 4 +- .../src/event/cloudwatch_events/ssm.rs | 28 +++---- .../src/event/cloudwatch_events/tag.rs | 2 +- .../event/cloudwatch_events/trustedadvisor.rs | 2 +- .../src/event/cloudwatch_logs/mod.rs | 9 +- lambda-events/src/event/code_commit/mod.rs | 10 +-- lambda-events/src/event/codebuild/mod.rs | 20 ++--- lambda-events/src/event/codedeploy/mod.rs | 8 +- .../src/event/codepipeline_cloudwatch/mod.rs | 8 +- .../src/event/codepipeline_job/mod.rs | 24 +++--- lambda-events/src/event/cognito/mod.rs | 84 +++++++++---------- lambda-events/src/event/config/mod.rs | 4 +- lambda-events/src/event/connect/mod.rs | 10 +-- .../event/documentdb/events/commom_types.rs | 12 +-- .../event/documentdb/events/delete_event.rs | 4 +- .../documentdb/events/drop_database_event.rs | 4 +- .../src/event/documentdb/events/drop_event.rs | 4 +- .../event/documentdb/events/insert_event.rs | 4 +- .../documentdb/events/invalidate_event.rs | 4 +- .../event/documentdb/events/rename_event.rs | 4 +- .../event/documentdb/events/replace_event.rs | 4 +- .../event/documentdb/events/update_event.rs | 8 +- lambda-events/src/event/documentdb/mod.rs | 6 +- lambda-events/src/event/dynamodb/mod.rs | 14 ++-- lambda-events/src/event/ecr_scan/mod.rs | 8 +- lambda-events/src/event/eventbridge/mod.rs | 4 +- lambda-events/src/event/firehose/mod.rs | 12 +-- lambda-events/src/event/iam/mod.rs | 4 +- lambda-events/src/event/iot/mod.rs | 16 ++-- lambda-events/src/event/iot_1_click/mod.rs | 10 +-- lambda-events/src/event/iot_button/mod.rs | 4 +- lambda-events/src/event/iot_deprecated/mod.rs | 6 +- lambda-events/src/event/kafka/mod.rs | 4 +- lambda-events/src/event/kinesis/analytics.rs | 10 +-- lambda-events/src/event/kinesis/event.rs | 12 ++- .../src/event/lambda_function_urls/mod.rs | 12 +-- lambda-events/src/event/lex/mod.rs | 18 ++-- lambda-events/src/event/rabbitmq/mod.rs | 6 +- lambda-events/src/event/s3/batch_job.rs | 12 ++- lambda-events/src/event/s3/event.rs | 14 ++-- lambda-events/src/event/s3/object_lambda.rs | 20 ++--- lambda-events/src/event/secretsmanager/mod.rs | 4 +- lambda-events/src/event/ses/mod.rs | 22 +++-- lambda-events/src/event/sns/mod.rs | 26 +++--- lambda-events/src/event/sqs/mod.rs | 22 ++--- lambda-events/src/event/streams/mod.rs | 14 ++-- 70 files changed, 394 insertions(+), 482 deletions(-) diff --git a/lambda-events/src/event/activemq/mod.rs b/lambda-events/src/event/activemq/mod.rs index e4d83db3..d49cf5ee 100644 --- a/lambda-events/src/event/activemq/mod.rs +++ b/lambda-events/src/event/activemq/mod.rs @@ -18,7 +18,7 @@ pub struct ActiveMqEvent { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Debug, Clone, Eq, PartialEq, Deserialize, Serialize)] @@ -54,7 +54,7 @@ pub struct ActiveMqMessage { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Debug, Clone, Eq, PartialEq, Deserialize, Serialize)] @@ -67,7 +67,7 @@ pub struct ActiveMqDestination { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[cfg(test)] diff --git a/lambda-events/src/event/alb/mod.rs b/lambda-events/src/event/alb/mod.rs index ba5ac702..7e3bd986 100644 --- a/lambda-events/src/event/alb/mod.rs +++ b/lambda-events/src/event/alb/mod.rs @@ -9,8 +9,6 @@ use query_map::QueryMap; use serde::{Deserialize, Serialize}; #[cfg(feature = "catch-all-fields")] use serde_json::Value; -#[cfg(feature = "catch-all-fields")] -use std::collections::HashMap; /// `AlbTargetGroupRequest` contains data originating from the ALB Lambda target group integration #[derive(Clone, Debug, Default, Deserialize, PartialEq, Serialize)] @@ -39,7 +37,7 @@ pub struct AlbTargetGroupRequest { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `AlbTargetGroupRequestContext` contains the information to identify the load balancer invoking the lambda @@ -52,7 +50,7 @@ pub struct AlbTargetGroupRequestContext { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `ElbContext` contains the information to identify the ARN invoking the lambda @@ -67,7 +65,7 @@ pub struct ElbContext { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `AlbTargetGroupResponse` configures the response to be returned by the ALB Lambda target group for the request @@ -92,7 +90,7 @@ pub struct AlbTargetGroupResponse { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[cfg(test)] diff --git a/lambda-events/src/event/apigw/mod.rs b/lambda-events/src/event/apigw/mod.rs index 582a0a6a..e867c8e5 100644 --- a/lambda-events/src/event/apigw/mod.rs +++ b/lambda-events/src/event/apigw/mod.rs @@ -52,7 +52,7 @@ pub struct ApiGatewayProxyRequest { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `ApiGatewayProxyResponse` configures the response to be returned by API Gateway for the request @@ -75,7 +75,7 @@ pub struct ApiGatewayProxyResponse { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `ApiGatewayProxyRequestContext` contains the information to identify the AWS account and resources invoking the @@ -127,7 +127,7 @@ pub struct ApiGatewayProxyRequestContext { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `ApiGatewayV2httpRequest` contains data coming from the new HTTP API Gateway @@ -183,7 +183,7 @@ pub struct ApiGatewayV2httpRequest { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `ApiGatewayV2httpRequestContext` contains the information to identify the AWS account and resources invoking the Lambda function. @@ -221,7 +221,7 @@ pub struct ApiGatewayV2httpRequestContext { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `ApiGatewayRequestAuthorizer` contains authorizer information for the request context. @@ -244,7 +244,7 @@ pub struct ApiGatewayRequestAuthorizer { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `ApiGatewayRequestAuthorizerJwtDescription` contains JWT authorizer information for the request context. @@ -261,7 +261,7 @@ pub struct ApiGatewayRequestAuthorizerJwtDescription { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `ApiGatewayRequestAuthorizerIamDescription` contains IAM information for the request context. @@ -287,7 +287,7 @@ pub struct ApiGatewayRequestAuthorizerIamDescription { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `ApiGatewayRequestAuthorizerCognitoIdentity` contains Cognito identity information for the request context. @@ -304,7 +304,7 @@ pub struct ApiGatewayRequestAuthorizerCognitoIdentity { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `ApiGatewayV2httpRequestContextHttpDescription` contains HTTP information for the request context. @@ -326,7 +326,7 @@ pub struct ApiGatewayV2httpRequestContextHttpDescription { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `ApiGatewayV2httpResponse` configures the response to be returned by API Gateway V2 for the request @@ -350,7 +350,7 @@ pub struct ApiGatewayV2httpResponse { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `ApiGatewayRequestIdentity` contains identity information for the request caller. @@ -389,7 +389,7 @@ pub struct ApiGatewayRequestIdentity { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `ApiGatewayWebsocketProxyRequest` contains data coming from the API Gateway proxy @@ -434,7 +434,7 @@ pub struct ApiGatewayWebsocketProxyRequest { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `ApiGatewayWebsocketProxyRequestContext` contains the information to identify @@ -504,7 +504,7 @@ pub struct ApiGatewayWebsocketProxyRequestContext { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `ApiGatewayCustomAuthorizerRequestTypeRequestIdentity` contains identity information for the request caller including certificate information if using mTLS. @@ -524,7 +524,7 @@ pub struct ApiGatewayCustomAuthorizerRequestTypeRequestIdentity { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `ApiGatewayCustomAuthorizerRequestTypeRequestIdentityClientCert` contains certificate information for the request caller if using mTLS. @@ -547,7 +547,7 @@ pub struct ApiGatewayCustomAuthorizerRequestTypeRequestIdentityClientCert { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `ApiGatewayCustomAuthorizerRequestTypeRequestIdentityClientCertValidity` contains certificate validity information for the request caller if using mTLS. @@ -563,7 +563,7 @@ pub struct ApiGatewayCustomAuthorizerRequestTypeRequestIdentityClientCertValidit /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `ApiGatewayV2httpRequestContextAuthentication` contains authentication context information for the request caller including client certificate information if using mTLS. @@ -577,7 +577,7 @@ pub struct ApiGatewayV2httpRequestContextAuthentication { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `ApiGatewayV2httpRequestContextAuthenticationClientCert` contains client certificate information for the request caller if using mTLS. @@ -600,7 +600,7 @@ pub struct ApiGatewayV2httpRequestContextAuthenticationClientCert { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `ApiGatewayV2httpRequestContextAuthenticationClientCertValidity` contains client certificate validity information for the request caller if using mTLS. @@ -616,7 +616,7 @@ pub struct ApiGatewayV2httpRequestContextAuthenticationClientCertValidity { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -645,7 +645,7 @@ pub struct ApiGatewayV2CustomAuthorizerV1RequestTypeRequestContext { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -686,7 +686,7 @@ pub struct ApiGatewayV2CustomAuthorizerV1Request { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -727,7 +727,7 @@ pub struct ApiGatewayV2CustomAuthorizerV2Request { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `ApiGatewayCustomAuthorizerContext` represents the expected format of an API Gateway custom authorizer response. @@ -745,7 +745,7 @@ pub struct ApiGatewayCustomAuthorizerContext { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `ApiGatewayCustomAuthorizerRequestTypeRequestContext` represents the expected format of an API Gateway custom authorizer response. @@ -779,7 +779,7 @@ pub struct ApiGatewayCustomAuthorizerRequestTypeRequestContext { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `ApiGatewayCustomAuthorizerRequest` contains data coming in to a custom API Gateway authorizer function. @@ -798,7 +798,7 @@ pub struct ApiGatewayCustomAuthorizerRequest { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `ApiGatewayCustomAuthorizerRequestTypeRequest` contains data coming in to a custom API Gateway authorizer function. @@ -841,7 +841,7 @@ pub struct ApiGatewayCustomAuthorizerRequestTypeRequest { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `ApiGatewayCustomAuthorizerResponse` represents the expected format of an API Gateway authorization response. @@ -863,7 +863,7 @@ where /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `ApiGatewayV2CustomAuthorizerSimpleResponse` represents the simple format of an API Gateway V2 authorization response. @@ -882,7 +882,7 @@ where /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -902,7 +902,7 @@ where /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `ApiGatewayCustomAuthorizerPolicy` represents an IAM policy @@ -917,7 +917,7 @@ pub struct ApiGatewayCustomAuthorizerPolicy { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } fn default_http_method() -> Method { diff --git a/lambda-events/src/event/appsync/mod.rs b/lambda-events/src/event/appsync/mod.rs index f8db1c6b..37ec5b7f 100644 --- a/lambda-events/src/event/appsync/mod.rs +++ b/lambda-events/src/event/appsync/mod.rs @@ -22,7 +22,7 @@ where /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `AppSyncIamIdentity` contains information about the caller authed via IAM. @@ -49,7 +49,7 @@ pub struct AppSyncIamIdentity { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `AppSyncCognitoIdentity` contains information about the caller authed via Cognito. @@ -78,7 +78,7 @@ where /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } pub type AppSyncOperation = String; @@ -95,7 +95,7 @@ pub struct AppSyncLambdaAuthorizerRequest { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `AppSyncLambdaAuthorizerRequestContext` contains the parameters of the AppSync invocation which triggered @@ -127,7 +127,7 @@ where /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `AppSyncLambdaAuthorizerResponse` represents the expected format of an authorization response to AppSync. @@ -150,7 +150,7 @@ where /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `AppSyncDirectResolverEvent` represents the default payload structure sent by AWS AppSync @@ -188,7 +188,7 @@ where /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `AppSyncRequest` contains request-related metadata for a resolver invocation, @@ -207,7 +207,7 @@ pub struct AppSyncRequest { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `AppSyncInfo` contains metadata about the current GraphQL field being resolved. @@ -230,7 +230,7 @@ where /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `AppSyncPrevResult` contains the result of the previous step in a pipeline resolver. @@ -246,7 +246,7 @@ where /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `AppSyncIdentity` represents the identity of the caller as determined by the @@ -275,7 +275,7 @@ where /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `AppSyncIdentityLambda` represents identity information when using AWS Lambda @@ -292,7 +292,7 @@ where /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[cfg(test)] diff --git a/lambda-events/src/event/autoscaling/mod.rs b/lambda-events/src/event/autoscaling/mod.rs index 3a1d4eed..ab798e04 100644 --- a/lambda-events/src/event/autoscaling/mod.rs +++ b/lambda-events/src/event/autoscaling/mod.rs @@ -46,7 +46,7 @@ where /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[cfg(test)] diff --git a/lambda-events/src/event/bedrock_agent_runtime/mod.rs b/lambda-events/src/event/bedrock_agent_runtime/mod.rs index 1d813d76..a2f3e503 100644 --- a/lambda-events/src/event/bedrock_agent_runtime/mod.rs +++ b/lambda-events/src/event/bedrock_agent_runtime/mod.rs @@ -36,7 +36,7 @@ pub struct AgentEvent { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -49,7 +49,7 @@ pub struct RequestBody { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -62,7 +62,7 @@ pub struct Content { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -79,7 +79,7 @@ pub struct Property { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -96,7 +96,7 @@ pub struct Parameter { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -115,7 +115,7 @@ pub struct Agent { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[cfg(test)] diff --git a/lambda-events/src/event/chime_bot/mod.rs b/lambda-events/src/event/chime_bot/mod.rs index bcc9f897..240bb151 100644 --- a/lambda-events/src/event/chime_bot/mod.rs +++ b/lambda-events/src/event/chime_bot/mod.rs @@ -2,8 +2,6 @@ use chrono::{DateTime, Utc}; use serde::{Deserialize, Serialize}; #[cfg(feature = "catch-all-fields")] use serde_json::Value; -#[cfg(feature = "catch-all-fields")] -use std::collections::HashMap; #[derive(Debug, Clone, Eq, PartialEq, Deserialize, Serialize)] #[serde(rename_all = "camelCase")] @@ -26,7 +24,7 @@ pub struct ChimeBotEvent { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Debug, Clone, Eq, PartialEq, Deserialize, Serialize)] @@ -43,7 +41,7 @@ pub struct ChimeBotEventSender { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Debug, Clone, Eq, PartialEq, Deserialize, Serialize)] @@ -60,7 +58,7 @@ pub struct ChimeBotEventDiscussion { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Debug, Clone, Eq, PartialEq, Deserialize, Serialize)] @@ -77,5 +75,5 @@ pub struct ChimeBotEventInboundHttpsEndpoint { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } diff --git a/lambda-events/src/event/clientvpn/mod.rs b/lambda-events/src/event/clientvpn/mod.rs index 678b81ad..50ae3477 100644 --- a/lambda-events/src/event/clientvpn/mod.rs +++ b/lambda-events/src/event/clientvpn/mod.rs @@ -1,8 +1,6 @@ use serde::{Deserialize, Serialize}; #[cfg(feature = "catch-all-fields")] use serde_json::Value; -#[cfg(feature = "catch-all-fields")] -use std::collections::HashMap; #[derive(Debug, Clone, Eq, PartialEq, Deserialize, Serialize)] #[serde(rename_all = "camelCase")] @@ -38,7 +36,7 @@ pub struct ClientVpnConnectionHandlerRequest { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Debug, Clone, Eq, PartialEq, Deserialize, Serialize)] @@ -58,7 +56,7 @@ pub struct ClientVpnConnectionHandlerResponse { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[cfg(test)] diff --git a/lambda-events/src/event/cloudformation/mod.rs b/lambda-events/src/event/cloudformation/mod.rs index ddb2fdb1..ada66edd 100644 --- a/lambda-events/src/event/cloudformation/mod.rs +++ b/lambda-events/src/event/cloudformation/mod.rs @@ -40,7 +40,7 @@ where /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Deserialize, PartialEq, Serialize)] @@ -68,7 +68,7 @@ where /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Deserialize, PartialEq, Serialize)] @@ -93,7 +93,7 @@ where /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Deserialize, PartialEq, Serialize)] @@ -112,7 +112,7 @@ pub struct CloudFormationCustomResourceResponse { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Deserialize, PartialEq, Serialize)] diff --git a/lambda-events/src/event/cloudformation/provider.rs b/lambda-events/src/event/cloudformation/provider.rs index ef8a4cc9..63d3c59b 100644 --- a/lambda-events/src/event/cloudformation/provider.rs +++ b/lambda-events/src/event/cloudformation/provider.rs @@ -4,9 +4,6 @@ //! //! See for details. -#[cfg(feature = "catch-all-fields")] -use std::collections::HashMap; - use serde::{de::DeserializeOwned, Deserialize, Serialize}; use serde_json::Value; @@ -83,7 +80,7 @@ where /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Deserialize, PartialEq, Serialize, Default)] @@ -101,7 +98,7 @@ where /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[cfg(test)] diff --git a/lambda-events/src/event/cloudwatch_alarms/mod.rs b/lambda-events/src/event/cloudwatch_alarms/mod.rs index 8232a277..8ade45c6 100644 --- a/lambda-events/src/event/cloudwatch_alarms/mod.rs +++ b/lambda-events/src/event/cloudwatch_alarms/mod.rs @@ -38,7 +38,7 @@ where /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `CloudWatchMetricAlarm` is the structure of an event triggered by CloudWatch metric alarms. @@ -70,7 +70,7 @@ where /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -93,7 +93,7 @@ where /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -108,7 +108,7 @@ pub struct CloudWatchMetricAlarmConfiguration { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -123,7 +123,7 @@ pub struct CloudWatchMetricDefinition { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -140,7 +140,7 @@ pub struct CloudWatchMetricStatDefinition { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -155,7 +155,7 @@ pub struct CloudWatchMetricStatMetricDefinition { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -170,7 +170,7 @@ pub struct CloudWatchCompositeAlarmConfiguration { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -222,7 +222,7 @@ pub struct CloudWatchAlarmStateReasonDataMetric { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, PartialEq, Serialize)] @@ -240,7 +240,7 @@ pub struct CloudWatchAlarmStateEvaluatedDatapoint { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -253,7 +253,7 @@ pub struct ClodWatchAlarmStateReasonDataComposite { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -266,7 +266,7 @@ pub struct CloudWatchAlarmStateTriggeringAlarm { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -280,7 +280,7 @@ pub struct CloudWatchAlarmStateTriggeringAlarmState { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } impl<'de> Deserialize<'de> for CloudWatchAlarmStateReasonData { diff --git a/lambda-events/src/event/cloudwatch_events/cloudtrail.rs b/lambda-events/src/event/cloudwatch_events/cloudtrail.rs index 9705ffc8..a355cffb 100644 --- a/lambda-events/src/event/cloudwatch_events/cloudtrail.rs +++ b/lambda-events/src/event/cloudwatch_events/cloudtrail.rs @@ -1,8 +1,6 @@ use chrono::{DateTime, Utc}; use serde::{Deserialize, Serialize}; use serde_json::Value; -#[cfg(feature = "catch-all-fields")] -use std::collections::HashMap; #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] #[serde(rename_all = "camelCase")] @@ -30,7 +28,7 @@ pub struct AWSAPICall { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -46,7 +44,7 @@ pub struct SessionIssuer { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -59,7 +57,7 @@ pub struct WebIdFederationData { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -72,7 +70,7 @@ pub struct Attributes { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -88,7 +86,7 @@ pub struct SessionContext { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -101,7 +99,7 @@ pub struct OnBehalfOf { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } // https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-event-reference-user-identity.html @@ -122,7 +120,7 @@ pub struct UserIdentity { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[cfg(test)] diff --git a/lambda-events/src/event/cloudwatch_events/codedeploy.rs b/lambda-events/src/event/cloudwatch_events/codedeploy.rs index f97aab01..6454abd5 100644 --- a/lambda-events/src/event/cloudwatch_events/codedeploy.rs +++ b/lambda-events/src/event/cloudwatch_events/codedeploy.rs @@ -1,8 +1,6 @@ use serde::{Deserialize, Serialize}; #[cfg(feature = "catch-all-fields")] use serde_json::Value; -#[cfg(feature = "catch-all-fields")] -use std::collections::HashMap; #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] #[serde(rename_all = "camelCase")] @@ -18,7 +16,7 @@ pub struct StateChangeNotification { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -36,7 +34,7 @@ pub struct DeploymentStateChangeNotification { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -52,5 +50,5 @@ pub struct InstanceStateChangeNotification { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } diff --git a/lambda-events/src/event/cloudwatch_events/codepipeline.rs b/lambda-events/src/event/cloudwatch_events/codepipeline.rs index 6ea73f55..c3976522 100644 --- a/lambda-events/src/event/cloudwatch_events/codepipeline.rs +++ b/lambda-events/src/event/cloudwatch_events/codepipeline.rs @@ -1,8 +1,6 @@ use serde::{Deserialize, Serialize}; #[cfg(feature = "catch-all-fields")] use serde_json::Value; -#[cfg(feature = "catch-all-fields")] -use std::collections::HashMap; #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] #[serde(rename_all = "camelCase")] @@ -17,7 +15,7 @@ pub struct PipelineExecutionStateChange { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -34,7 +32,7 @@ pub struct StageExecutionStateChange { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -55,7 +53,7 @@ pub struct ActionExecutionStateChange { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -70,5 +68,5 @@ pub struct ActionExecutionStateChangeType { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } diff --git a/lambda-events/src/event/cloudwatch_events/ec2.rs b/lambda-events/src/event/cloudwatch_events/ec2.rs index b1d4f746..21a84a65 100644 --- a/lambda-events/src/event/cloudwatch_events/ec2.rs +++ b/lambda-events/src/event/cloudwatch_events/ec2.rs @@ -1,8 +1,6 @@ use serde::{Deserialize, Serialize}; #[cfg(feature = "catch-all-fields")] use serde_json::Value; -#[cfg(feature = "catch-all-fields")] -use std::collections::HashMap; #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] #[serde(rename_all = "camelCase")] @@ -15,5 +13,5 @@ pub struct InstanceStateChange { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } diff --git a/lambda-events/src/event/cloudwatch_events/emr.rs b/lambda-events/src/event/cloudwatch_events/emr.rs index 05aeec63..bb72192b 100644 --- a/lambda-events/src/event/cloudwatch_events/emr.rs +++ b/lambda-events/src/event/cloudwatch_events/emr.rs @@ -1,8 +1,6 @@ use serde::{Deserialize, Serialize}; #[cfg(feature = "catch-all-fields")] use serde_json::Value; -#[cfg(feature = "catch-all-fields")] -use std::collections::HashMap; #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] #[serde(rename_all = "camelCase")] @@ -17,7 +15,7 @@ pub struct AutoScalingPolicyStateChange { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -34,7 +32,7 @@ pub struct ClusterStateChange { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -55,7 +53,7 @@ pub struct InstanceGroupStateChange { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -73,5 +71,5 @@ pub struct StepStatusChange { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } diff --git a/lambda-events/src/event/cloudwatch_events/gamelift.rs b/lambda-events/src/event/cloudwatch_events/gamelift.rs index 1201d666..7d7554d8 100644 --- a/lambda-events/src/event/cloudwatch_events/gamelift.rs +++ b/lambda-events/src/event/cloudwatch_events/gamelift.rs @@ -1,8 +1,6 @@ use serde::{Deserialize, Serialize}; #[cfg(feature = "catch-all-fields")] use serde_json::Value; -#[cfg(feature = "catch-all-fields")] -use std::collections::HashMap; use crate::custom_serde::deserialize_nullish_boolean; @@ -18,7 +16,7 @@ pub struct MatchmakingSearching { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -32,7 +30,7 @@ pub struct Ticket { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -48,7 +46,7 @@ pub struct Player { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -60,7 +58,7 @@ pub struct GameSessionInfo { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -78,7 +76,7 @@ pub struct PotentialMatchCreated { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -92,7 +90,7 @@ pub struct RuleEvaluationMetric { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -107,7 +105,7 @@ pub struct AcceptMatch { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -123,7 +121,7 @@ pub struct AcceptMatchCompleted { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -138,7 +136,7 @@ pub struct MatchmakingSucceeded { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -155,7 +153,7 @@ pub struct MatchmakingTimedOut { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -172,7 +170,7 @@ pub struct MatchmakingCancelled { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -190,5 +188,5 @@ pub struct MatchmakingFailed { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } diff --git a/lambda-events/src/event/cloudwatch_events/glue.rs b/lambda-events/src/event/cloudwatch_events/glue.rs index 36cd1854..14e30cda 100644 --- a/lambda-events/src/event/cloudwatch_events/glue.rs +++ b/lambda-events/src/event/cloudwatch_events/glue.rs @@ -1,8 +1,6 @@ use serde::{Deserialize, Serialize}; #[cfg(feature = "catch-all-fields")] use serde_json::Value; -#[cfg(feature = "catch-all-fields")] -use std::collections::HashMap; #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] #[serde(rename_all = "camelCase")] @@ -17,7 +15,7 @@ pub struct JobRunStateChange { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -33,7 +31,7 @@ pub struct CrawlerStarted { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -59,7 +57,7 @@ pub struct CrawlerSucceeded { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -76,7 +74,7 @@ pub struct CrawlerFailed { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, PartialEq, Serialize)] @@ -94,7 +92,7 @@ pub struct JobRunStatus { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, PartialEq, Serialize)] @@ -107,7 +105,7 @@ pub struct NotificationCondition { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -122,7 +120,7 @@ pub struct DataCatalogTableStateChange { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -136,5 +134,5 @@ pub struct DataCatalogDatabaseStateChange { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } diff --git a/lambda-events/src/event/cloudwatch_events/health.rs b/lambda-events/src/event/cloudwatch_events/health.rs index 784a5db7..cfea569f 100644 --- a/lambda-events/src/event/cloudwatch_events/health.rs +++ b/lambda-events/src/event/cloudwatch_events/health.rs @@ -19,7 +19,7 @@ pub struct Event { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -32,7 +32,7 @@ pub struct EventDescription { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -45,5 +45,5 @@ pub struct Entity { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } diff --git a/lambda-events/src/event/cloudwatch_events/kms.rs b/lambda-events/src/event/cloudwatch_events/kms.rs index cb9e8626..1dfe2fc7 100644 --- a/lambda-events/src/event/cloudwatch_events/kms.rs +++ b/lambda-events/src/event/cloudwatch_events/kms.rs @@ -1,8 +1,6 @@ use serde::{Deserialize, Serialize}; #[cfg(feature = "catch-all-fields")] use serde_json::Value; -#[cfg(feature = "catch-all-fields")] -use std::collections::HashMap; #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] #[serde(rename_all = "camelCase")] @@ -14,5 +12,5 @@ pub struct CMKEvent { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } diff --git a/lambda-events/src/event/cloudwatch_events/macie.rs b/lambda-events/src/event/cloudwatch_events/macie.rs index f5eaf0fb..cea4e0b8 100644 --- a/lambda-events/src/event/cloudwatch_events/macie.rs +++ b/lambda-events/src/event/cloudwatch_events/macie.rs @@ -25,7 +25,7 @@ pub struct Alert { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } pub type BucketScanAlert = Alert; @@ -48,7 +48,7 @@ pub struct Trigger { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -76,7 +76,7 @@ pub struct BucketScanSummary { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -93,7 +93,7 @@ pub struct Ip { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -107,7 +107,7 @@ pub struct TimeRange { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -120,7 +120,7 @@ pub struct Location { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -135,7 +135,7 @@ pub struct ActionInfo { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -158,7 +158,7 @@ pub struct BucketWritableSummary { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -171,7 +171,7 @@ pub struct Bucket { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -184,7 +184,7 @@ pub struct Acl { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -199,7 +199,7 @@ pub struct SecretBucketName { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -214,7 +214,7 @@ pub struct Owner { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -229,7 +229,7 @@ pub struct Grant { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -243,7 +243,7 @@ pub struct Grantee { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -270,7 +270,7 @@ pub struct BucketContainsHighRiskObjectSummary { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, PartialEq, Serialize)] @@ -294,7 +294,7 @@ pub struct AlertUpdated { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, PartialEq, Serialize)] @@ -308,7 +308,7 @@ pub struct UpdatedTrigger { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, PartialEq, Serialize)] @@ -327,5 +327,5 @@ pub struct FeatureInfo { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } diff --git a/lambda-events/src/event/cloudwatch_events/mod.rs b/lambda-events/src/event/cloudwatch_events/mod.rs index 05bcd688..f6efe7d6 100644 --- a/lambda-events/src/event/cloudwatch_events/mod.rs +++ b/lambda-events/src/event/cloudwatch_events/mod.rs @@ -1,8 +1,6 @@ use chrono::{DateTime, Utc}; use serde::{de::DeserializeOwned, Deserialize, Serialize}; use serde_json::Value; -#[cfg(feature = "catch-all-fields")] -use std::collections::HashMap; pub mod cloudtrail; pub mod codedeploy; @@ -53,5 +51,5 @@ where /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } diff --git a/lambda-events/src/event/cloudwatch_events/opsworks.rs b/lambda-events/src/event/cloudwatch_events/opsworks.rs index 9c2b1788..1d263f03 100644 --- a/lambda-events/src/event/cloudwatch_events/opsworks.rs +++ b/lambda-events/src/event/cloudwatch_events/opsworks.rs @@ -1,8 +1,6 @@ use serde::{Deserialize, Serialize}; #[cfg(feature = "catch-all-fields")] use serde_json::Value; -#[cfg(feature = "catch-all-fields")] -use std::collections::HashMap; #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] #[serde(rename_all = "camelCase")] @@ -24,7 +22,7 @@ pub struct InstanceStateChange { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -41,7 +39,7 @@ pub struct CommandStateChange { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -61,7 +59,7 @@ pub struct DeploymentStateChange { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -78,5 +76,5 @@ pub struct Alert { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } diff --git a/lambda-events/src/event/cloudwatch_events/signin.rs b/lambda-events/src/event/cloudwatch_events/signin.rs index 84b89f9b..6dad366c 100644 --- a/lambda-events/src/event/cloudwatch_events/signin.rs +++ b/lambda-events/src/event/cloudwatch_events/signin.rs @@ -1,7 +1,5 @@ use serde::{Deserialize, Serialize}; use serde_json::Value; -#[cfg(feature = "catch-all-fields")] -use std::collections::HashMap; #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] #[serde(rename_all = "camelCase")] @@ -26,7 +24,7 @@ pub struct SignIn { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -41,7 +39,7 @@ pub struct UserIdentity { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -54,7 +52,7 @@ pub struct ResponseElements { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -71,5 +69,5 @@ pub struct AdditionalEventData { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } diff --git a/lambda-events/src/event/cloudwatch_events/sms.rs b/lambda-events/src/event/cloudwatch_events/sms.rs index 36785e18..0f1121f6 100644 --- a/lambda-events/src/event/cloudwatch_events/sms.rs +++ b/lambda-events/src/event/cloudwatch_events/sms.rs @@ -1,8 +1,6 @@ use serde::{Deserialize, Serialize}; #[cfg(feature = "catch-all-fields")] use serde_json::Value; -#[cfg(feature = "catch-all-fields")] -use std::collections::HashMap; #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] #[serde(rename_all = "camelCase")] @@ -20,5 +18,5 @@ pub struct JobStateChange { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } diff --git a/lambda-events/src/event/cloudwatch_events/ssm.rs b/lambda-events/src/event/cloudwatch_events/ssm.rs index c58e2e27..abf2c887 100644 --- a/lambda-events/src/event/cloudwatch_events/ssm.rs +++ b/lambda-events/src/event/cloudwatch_events/ssm.rs @@ -29,7 +29,7 @@ pub struct EC2AutomationStepStatusChange { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, PartialEq, Serialize)] @@ -56,7 +56,7 @@ pub struct EC2AutomationExecutionStatusChange { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -70,7 +70,7 @@ pub struct StateChange { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -94,7 +94,7 @@ pub struct ConfigurationComplianceStateChange { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -110,7 +110,7 @@ pub struct MaintenanceWindowTargetRegistration { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -130,7 +130,7 @@ pub struct MaintenanceWindowExecutionStateChange { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -152,7 +152,7 @@ pub struct MaintenanceWindowTaskExecutionStateChange { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -178,7 +178,7 @@ pub struct MaintenanceWindowTaskTargetInvocationStateChange { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -192,7 +192,7 @@ pub struct MaintenanceWindowStateChange { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -207,7 +207,7 @@ pub struct ParameterStoreStateChange { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -228,7 +228,7 @@ pub struct EC2CommandStatusChange { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -248,7 +248,7 @@ pub struct EC2CommandInvocationStatusChange { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -283,7 +283,7 @@ pub struct EC2StateManagerAssociationStateChange { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -320,5 +320,5 @@ pub struct EC2StateManagerInstanceAssociationStateChange { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } diff --git a/lambda-events/src/event/cloudwatch_events/tag.rs b/lambda-events/src/event/cloudwatch_events/tag.rs index e96190d1..30937534 100644 --- a/lambda-events/src/event/cloudwatch_events/tag.rs +++ b/lambda-events/src/event/cloudwatch_events/tag.rs @@ -19,5 +19,5 @@ pub struct TagChangeOnResource { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } diff --git a/lambda-events/src/event/cloudwatch_events/trustedadvisor.rs b/lambda-events/src/event/cloudwatch_events/trustedadvisor.rs index f0408a5a..f31d74ef 100644 --- a/lambda-events/src/event/cloudwatch_events/trustedadvisor.rs +++ b/lambda-events/src/event/cloudwatch_events/trustedadvisor.rs @@ -19,5 +19,5 @@ pub struct CheckItemRefreshNotification { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } diff --git a/lambda-events/src/event/cloudwatch_logs/mod.rs b/lambda-events/src/event/cloudwatch_logs/mod.rs index 4d96c037..ff70fdd0 100644 --- a/lambda-events/src/event/cloudwatch_logs/mod.rs +++ b/lambda-events/src/event/cloudwatch_logs/mod.rs @@ -5,8 +5,7 @@ use serde::{ }; #[cfg(feature = "catch-all-fields")] use serde_json::Value; -#[cfg(feature = "catch-all-fields")] -use std::collections::HashMap; + use std::{fmt, io::BufReader}; /// `LogsEvent` represents the raw event sent by CloudWatch @@ -20,7 +19,7 @@ pub struct LogsEvent { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `AwsLogs` is an unmarshaled, ungzipped, CloudWatch logs event @@ -51,7 +50,7 @@ pub struct LogData { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `LogEntry` represents a log entry from cloudwatch logs @@ -68,7 +67,7 @@ pub struct LogEntry { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } impl<'de> Deserialize<'de> for AwsLogs { diff --git a/lambda-events/src/event/code_commit/mod.rs b/lambda-events/src/event/code_commit/mod.rs index 11d84c1a..3fbdddba 100644 --- a/lambda-events/src/event/code_commit/mod.rs +++ b/lambda-events/src/event/code_commit/mod.rs @@ -2,8 +2,6 @@ use chrono::{DateTime, Utc}; use serde::{Deserialize, Serialize}; #[cfg(feature = "catch-all-fields")] use serde_json::Value; -#[cfg(feature = "catch-all-fields")] -use std::collections::HashMap; use crate::custom_serde::deserialize_nullish_boolean; @@ -18,7 +16,7 @@ pub struct CodeCommitEvent { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } pub type CodeCommitEventTime = DateTime; @@ -59,7 +57,7 @@ pub struct CodeCommitRecord { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `CodeCommitCodeCommit` represents a CodeCommit object in a record @@ -75,7 +73,7 @@ pub struct CodeCommitCodeCommit { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `CodeCommitReference` represents a Reference object in a CodeCommit object @@ -93,7 +91,7 @@ pub struct CodeCommitReference { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[cfg(test)] diff --git a/lambda-events/src/event/codebuild/mod.rs b/lambda-events/src/event/codebuild/mod.rs index 7d812f46..8a80c5c6 100644 --- a/lambda-events/src/event/codebuild/mod.rs +++ b/lambda-events/src/event/codebuild/mod.rs @@ -5,8 +5,6 @@ use crate::{ use chrono::{DateTime, Utc}; use serde::{de::DeserializeOwned, Deserialize, Serialize}; use serde_json::Value; -#[cfg(feature = "catch-all-fields")] -use std::collections::HashMap; pub type CodeBuildPhaseStatus = String; @@ -51,7 +49,7 @@ pub struct CodeBuildEvent { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `CodeBuildEventDetail` represents the all details related to the code build event @@ -97,7 +95,7 @@ pub struct CodeBuildEventDetail { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `CodeBuildEventAdditionalInformation` represents additional information to the code build event @@ -128,7 +126,7 @@ pub struct CodeBuildEventAdditionalInformation { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `CodeBuildArtifact` represents the artifact provided to build @@ -148,7 +146,7 @@ pub struct CodeBuildArtifact { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `CodeBuildEnvironment` represents the environment for a build @@ -171,7 +169,7 @@ pub struct CodeBuildEnvironment { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `CodeBuildEnvironmentVariable` encapsulate environment variables for the code build @@ -192,7 +190,7 @@ pub struct CodeBuildEnvironmentVariable { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `CodeBuildSource` represent the code source will be build @@ -208,7 +206,7 @@ pub struct CodeBuildSource { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `CodeBuildLogs` gives the log details of a code build @@ -229,7 +227,7 @@ pub struct CodeBuildLogs { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `CodeBuildPhase` represents the phase of a build and its details @@ -261,7 +259,7 @@ where /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } pub type CodeBuildTime = DateTime; diff --git a/lambda-events/src/event/codedeploy/mod.rs b/lambda-events/src/event/codedeploy/mod.rs index fd079473..3e532ec2 100644 --- a/lambda-events/src/event/codedeploy/mod.rs +++ b/lambda-events/src/event/codedeploy/mod.rs @@ -2,8 +2,6 @@ use chrono::{DateTime, Utc}; use serde::{Deserialize, Serialize}; #[cfg(feature = "catch-all-fields")] use serde_json::Value; -#[cfg(feature = "catch-all-fields")] -use std::collections::HashMap; pub type CodeDeployDeploymentState = String; @@ -47,7 +45,7 @@ pub struct CodeDeployEvent { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Debug, Clone, Eq, PartialEq, Deserialize, Serialize)] @@ -78,7 +76,7 @@ pub struct CodeDeployEventDetail { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Debug, Clone, Deserialize, Serialize, Eq, PartialEq)] @@ -91,7 +89,7 @@ pub struct CodeDeployLifecycleEvent { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[cfg(test)] diff --git a/lambda-events/src/event/codepipeline_cloudwatch/mod.rs b/lambda-events/src/event/codepipeline_cloudwatch/mod.rs index f5efdfbc..9077caa8 100644 --- a/lambda-events/src/event/codepipeline_cloudwatch/mod.rs +++ b/lambda-events/src/event/codepipeline_cloudwatch/mod.rs @@ -2,8 +2,6 @@ use chrono::{DateTime, Utc}; use serde::{Deserialize, Serialize}; #[cfg(feature = "catch-all-fields")] use serde_json::Value; -#[cfg(feature = "catch-all-fields")] -use std::collections::HashMap; pub type CodePipelineStageState = String; @@ -51,7 +49,7 @@ pub struct CodePipelineCloudWatchEvent { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Debug, Clone, Eq, PartialEq, Deserialize, Serialize)] @@ -77,7 +75,7 @@ pub struct CodePipelineEventDetail { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Debug, Clone, Eq, PartialEq, Deserialize, Serialize)] @@ -96,7 +94,7 @@ pub struct CodePipelineEventDetailType { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[cfg(test)] diff --git a/lambda-events/src/event/codepipeline_job/mod.rs b/lambda-events/src/event/codepipeline_job/mod.rs index 0344513c..3aa42b46 100644 --- a/lambda-events/src/event/codepipeline_job/mod.rs +++ b/lambda-events/src/event/codepipeline_job/mod.rs @@ -1,8 +1,6 @@ use serde::{Deserialize, Serialize}; #[cfg(feature = "catch-all-fields")] use serde_json::Value; -#[cfg(feature = "catch-all-fields")] -use std::collections::HashMap; /// `CodePipelineJobEvent` contains data from an event sent from AWS CodePipeline #[derive(Debug, Clone, Eq, PartialEq, Deserialize, Serialize)] @@ -15,7 +13,7 @@ pub struct CodePipelineJobEvent { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `CodePipelineJob` represents a job from an AWS CodePipeline event @@ -32,7 +30,7 @@ pub struct CodePipelineJob { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `CodePipelineData` represents a job from an AWS CodePipeline event @@ -51,7 +49,7 @@ pub struct CodePipelineData { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `CodePipelineActionConfiguration` represents an Action Configuration @@ -64,7 +62,7 @@ pub struct CodePipelineActionConfiguration { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `CodePipelineConfiguration` represents a configuration for an Action Configuration @@ -82,7 +80,7 @@ pub struct CodePipelineConfiguration { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `CodePipelineInputArtifact` represents an input artifact @@ -98,7 +96,7 @@ pub struct CodePipelineInputArtifact { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `CodePipelineInputLocation` represents a input location @@ -114,7 +112,7 @@ pub struct CodePipelineInputLocation { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `CodePipelineS3Location` represents an s3 input location @@ -130,7 +128,7 @@ pub struct CodePipelineS3Location { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `CodePipelineOutputArtifact` represents an output artifact @@ -146,7 +144,7 @@ pub struct CodePipelineOutputArtifact { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `CodePipelineOutputLocation` represents a output location @@ -162,7 +160,7 @@ pub struct CodePipelineOutputLocation { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `CodePipelineArtifactCredentials` represents CodePipeline artifact credentials @@ -180,7 +178,7 @@ pub struct CodePipelineArtifactCredentials { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[cfg(test)] diff --git a/lambda-events/src/event/cognito/mod.rs b/lambda-events/src/event/cognito/mod.rs index f66b928b..36b1ccf2 100644 --- a/lambda-events/src/event/cognito/mod.rs +++ b/lambda-events/src/event/cognito/mod.rs @@ -27,7 +27,7 @@ pub struct CognitoEvent { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `CognitoDatasetRecord` represents a record from an AWS Cognito Sync event @@ -45,7 +45,7 @@ pub struct CognitoDatasetRecord { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `CognitoEventUserPoolsPreSignup` is sent by AWS Cognito User Pools when a user attempts to register @@ -63,7 +63,7 @@ pub struct CognitoEventUserPoolsPreSignup { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Deserialize, Eq, PartialEq, Serialize, Default)] @@ -93,7 +93,7 @@ pub struct CognitoEventUserPoolsPreAuthentication { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Deserialize, Eq, PartialEq, Serialize, Default)] @@ -124,7 +124,7 @@ where /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Deserialize, Eq, PartialEq, Serialize, Default)] @@ -151,7 +151,7 @@ pub struct CognitoEventUserPoolsPreTokenGen { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Deserialize, Eq, PartialEq, Serialize, Default)] @@ -185,7 +185,7 @@ pub struct CognitoEventUserPoolsPostAuthentication { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Deserialize, Eq, PartialEq, Serialize, Default)] @@ -212,7 +212,7 @@ pub struct CognitoEventUserPoolsMigrateUser { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Deserialize, Eq, PartialEq, Serialize, Default)] @@ -238,7 +238,7 @@ pub struct CognitoEventUserPoolsCallerContext { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `CognitoEventUserPoolsHeader` contains common data from events sent by AWS Cognito User Pools @@ -279,7 +279,7 @@ pub struct CognitoEventUserPoolsPreSignupRequest { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `CognitoEventUserPoolsPreSignupResponse` contains the response portion of a PreSignup event @@ -294,7 +294,7 @@ pub struct CognitoEventUserPoolsPreSignupResponse { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `CognitoEventUserPoolsPreAuthenticationRequest` contains the request portion of a PreAuthentication event @@ -312,7 +312,7 @@ pub struct CognitoEventUserPoolsPreAuthenticationRequest { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `CognitoEventUserPoolsPreAuthenticationResponse` contains the response portion of a PreAuthentication event @@ -323,7 +323,7 @@ pub struct CognitoEventUserPoolsPreAuthenticationResponse { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `CognitoEventUserPoolsPostConfirmationRequest` contains the request portion of a PostConfirmation event #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -340,7 +340,7 @@ pub struct CognitoEventUserPoolsPostConfirmationRequest { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `CognitoEventUserPoolsPostConfirmationResponse` contains the response portion of a PostConfirmation event @@ -351,7 +351,7 @@ pub struct CognitoEventUserPoolsPostConfirmationResponse { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `CognitoEventUserPoolsPreTokenGenRequest` contains request portion of PreTokenGen event @@ -370,7 +370,7 @@ pub struct CognitoEventUserPoolsPreTokenGenRequest { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `CognitoEventUserPoolsPreTokenGenResponse` contains the response portion of a PreTokenGen event @@ -383,7 +383,7 @@ pub struct CognitoEventUserPoolsPreTokenGenResponse { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `CognitoEventUserPoolsPreTokenGenV2` is sent by AWS Cognito User Pools when a user attempts to retrieve @@ -401,7 +401,7 @@ pub struct CognitoEventUserPoolsPreTokenGenV2 { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `CognitoEventUserPoolsPreTokenGenRequestV2` contains request portion of PreTokenGenV2 event @@ -421,7 +421,7 @@ pub struct CognitoEventUserPoolsPreTokenGenRequestV2 { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -433,7 +433,7 @@ pub struct CognitoEventUserPoolsPreTokenGenResponseV2 { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `ClaimsAndScopeOverrideDetailsV2` allows lambda to add, suppress or override claims in the token @@ -448,7 +448,7 @@ pub struct ClaimsAndScopeOverrideDetailsV2 { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `CognitoIdTokenGenerationV2` allows lambda to customize the ID Token before generation @@ -462,7 +462,7 @@ pub struct CognitoIdTokenGenerationV2 { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `CognitoAccessTokenGenerationV2` allows lambda to customize the Access Token before generation @@ -478,7 +478,7 @@ pub struct CognitoAccessTokenGenerationV2 { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `CognitoEventUserPoolsPostAuthenticationRequest` contains the request portion of a PostAuthentication event @@ -497,7 +497,7 @@ pub struct CognitoEventUserPoolsPostAuthenticationRequest { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `CognitoEventUserPoolsPostAuthenticationResponse` contains the response portion of a PostAuthentication event @@ -508,7 +508,7 @@ pub struct CognitoEventUserPoolsPostAuthenticationResponse { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `CognitoEventUserPoolsMigrateUserRequest` contains the request portion of a MigrateUser event #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -527,7 +527,7 @@ pub struct CognitoEventUserPoolsMigrateUserRequest { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `CognitoEventUserPoolsMigrateUserResponse` contains the response portion of a MigrateUser event @@ -550,7 +550,7 @@ pub struct CognitoEventUserPoolsMigrateUserResponse { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `ClaimsOverrideDetails` allows lambda to add, suppress or override claims in the token @@ -567,7 +567,7 @@ pub struct ClaimsOverrideDetails { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `GroupConfiguration` allows lambda to override groups, roles and set a preferred role @@ -582,7 +582,7 @@ pub struct GroupConfiguration { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `CognitoEventUserPoolsChallengeResult` represents a challenge that is presented to the user in the authentication @@ -600,7 +600,7 @@ pub struct CognitoEventUserPoolsChallengeResult { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `CognitoEventUserPoolsDefineAuthChallengeRequest` defines auth challenge request parameters @@ -621,7 +621,7 @@ pub struct CognitoEventUserPoolsDefineAuthChallengeRequest { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `CognitoEventUserPoolsDefineAuthChallengeResponse` defines auth challenge response parameters @@ -639,7 +639,7 @@ pub struct CognitoEventUserPoolsDefineAuthChallengeResponse { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `CognitoEventUserPoolsDefineAuthChallenge` sent by AWS Cognito User Pools to initiate custom authentication flow @@ -657,7 +657,7 @@ pub struct CognitoEventUserPoolsDefineAuthChallenge { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Deserialize, Eq, PartialEq, Serialize, Default)] @@ -687,7 +687,7 @@ pub struct CognitoEventUserPoolsCreateAuthChallengeRequest { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `CognitoEventUserPoolsCreateAuthChallengeResponse` defines create auth challenge response parameters @@ -707,7 +707,7 @@ pub struct CognitoEventUserPoolsCreateAuthChallengeResponse { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `CognitoEventUserPoolsCreateAuthChallenge` sent by AWS Cognito User Pools to create a challenge to present to the user @@ -725,7 +725,7 @@ pub struct CognitoEventUserPoolsCreateAuthChallenge { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Deserialize, Eq, PartialEq, Serialize, Default)] @@ -761,7 +761,7 @@ where /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `CognitoEventUserPoolsVerifyAuthChallengeResponse` defines verify auth challenge response parameters @@ -775,7 +775,7 @@ pub struct CognitoEventUserPoolsVerifyAuthChallengeResponse { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `CognitoEventUserPoolsVerifyAuthChallenge` sent by AWS Cognito User Pools to verify if the response from the end user @@ -794,7 +794,7 @@ pub struct CognitoEventUserPoolsVerifyAuthChallenge { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Deserialize, Eq, PartialEq, Serialize, Default)] @@ -819,7 +819,7 @@ pub struct CognitoEventUserPoolsCustomMessage { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Deserialize, Eq, PartialEq, Serialize, Default)] @@ -865,7 +865,7 @@ where /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `CognitoEventUserPoolsCustomMessageResponse` contains the response portion of a CustomMessage event @@ -883,7 +883,7 @@ pub struct CognitoEventUserPoolsCustomMessageResponse { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[cfg(test)] diff --git a/lambda-events/src/event/config/mod.rs b/lambda-events/src/event/config/mod.rs index bb44e26a..a2d0e174 100644 --- a/lambda-events/src/event/config/mod.rs +++ b/lambda-events/src/event/config/mod.rs @@ -1,8 +1,6 @@ use serde::{Deserialize, Serialize}; #[cfg(feature = "catch-all-fields")] use serde_json::Value; -#[cfg(feature = "catch-all-fields")] -use std::collections::HashMap; /// `ConfigEvent` contains data from an event sent from AWS Config #[derive(Debug, Clone, Eq, PartialEq, Deserialize, Serialize)] @@ -43,7 +41,7 @@ pub struct ConfigEvent { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[cfg(test)] diff --git a/lambda-events/src/event/connect/mod.rs b/lambda-events/src/event/connect/mod.rs index 0e2e053c..5dca992d 100644 --- a/lambda-events/src/event/connect/mod.rs +++ b/lambda-events/src/event/connect/mod.rs @@ -20,7 +20,7 @@ pub struct ConnectEvent { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `ConnectDetails` holds the details of a Connect event @@ -39,7 +39,7 @@ pub struct ConnectDetails { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `ConnectContactData` holds all of the contact information for the user that invoked the Connect event. @@ -81,7 +81,7 @@ pub struct ConnectContactData { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `ConnectEndpoint` represents routing information. @@ -99,7 +99,7 @@ pub struct ConnectEndpoint { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `ConnectQueue` represents a queue object. @@ -117,7 +117,7 @@ pub struct ConnectQueue { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } pub type ConnectResponse = HashMap; diff --git a/lambda-events/src/event/documentdb/events/commom_types.rs b/lambda-events/src/event/documentdb/events/commom_types.rs index 4f4f9f20..69922b0a 100644 --- a/lambda-events/src/event/documentdb/events/commom_types.rs +++ b/lambda-events/src/event/documentdb/events/commom_types.rs @@ -16,7 +16,7 @@ pub struct DatabaseCollection { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -28,7 +28,7 @@ pub struct DocumentId { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -40,7 +40,7 @@ pub struct DocumentKeyIdOid { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -52,7 +52,7 @@ pub struct DocumentKeyId { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -64,7 +64,7 @@ pub struct InnerTimestamp { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -76,5 +76,5 @@ pub struct Timestamp { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } diff --git a/lambda-events/src/event/documentdb/events/delete_event.rs b/lambda-events/src/event/documentdb/events/delete_event.rs index b1f6f18b..b444207a 100644 --- a/lambda-events/src/event/documentdb/events/delete_event.rs +++ b/lambda-events/src/event/documentdb/events/delete_event.rs @@ -1,8 +1,6 @@ use serde::{Deserialize, Serialize}; #[cfg(feature = "catch-all-fields")] use serde_json::Value; -#[cfg(feature = "catch-all-fields")] -use std::collections::HashMap; use super::commom_types::{AnyDocument, DatabaseCollection, DocumentId, DocumentKeyId, Timestamp}; @@ -26,5 +24,5 @@ pub struct ChangeDeleteEvent { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } diff --git a/lambda-events/src/event/documentdb/events/drop_database_event.rs b/lambda-events/src/event/documentdb/events/drop_database_event.rs index 55e8aea5..e055f616 100644 --- a/lambda-events/src/event/documentdb/events/drop_database_event.rs +++ b/lambda-events/src/event/documentdb/events/drop_database_event.rs @@ -1,8 +1,6 @@ use serde::{Deserialize, Serialize}; #[cfg(feature = "catch-all-fields")] use serde_json::Value; -#[cfg(feature = "catch-all-fields")] -use std::collections::HashMap; use super::commom_types::{AnyDocument, DatabaseCollection, DocumentId, Timestamp}; @@ -25,5 +23,5 @@ pub struct ChangeDropDatabaseEvent { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } diff --git a/lambda-events/src/event/documentdb/events/drop_event.rs b/lambda-events/src/event/documentdb/events/drop_event.rs index 9d6f812a..5673e107 100644 --- a/lambda-events/src/event/documentdb/events/drop_event.rs +++ b/lambda-events/src/event/documentdb/events/drop_event.rs @@ -2,8 +2,6 @@ use super::commom_types::{AnyDocument, DatabaseCollection, DocumentId, Timestamp use serde::{Deserialize, Serialize}; #[cfg(feature = "catch-all-fields")] use serde_json::Value; -#[cfg(feature = "catch-all-fields")] -use std::collections::HashMap; #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] #[serde(rename_all = "camelCase")] @@ -24,5 +22,5 @@ pub struct ChangeDropEvent { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } diff --git a/lambda-events/src/event/documentdb/events/insert_event.rs b/lambda-events/src/event/documentdb/events/insert_event.rs index 1a8abef9..e070de5a 100644 --- a/lambda-events/src/event/documentdb/events/insert_event.rs +++ b/lambda-events/src/event/documentdb/events/insert_event.rs @@ -1,8 +1,6 @@ use serde::{Deserialize, Serialize}; #[cfg(feature = "catch-all-fields")] use serde_json::Value; -#[cfg(feature = "catch-all-fields")] -use std::collections::HashMap; use super::commom_types::{AnyDocument, DatabaseCollection, DocumentId, DocumentKeyId, Timestamp}; @@ -26,5 +24,5 @@ pub struct ChangeInsertEvent { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } diff --git a/lambda-events/src/event/documentdb/events/invalidate_event.rs b/lambda-events/src/event/documentdb/events/invalidate_event.rs index dbc2c9d4..0b033ddd 100644 --- a/lambda-events/src/event/documentdb/events/invalidate_event.rs +++ b/lambda-events/src/event/documentdb/events/invalidate_event.rs @@ -1,8 +1,6 @@ use serde::{Deserialize, Serialize}; #[cfg(feature = "catch-all-fields")] use serde_json::Value; -#[cfg(feature = "catch-all-fields")] -use std::collections::HashMap; use super::commom_types::{DocumentId, Timestamp}; @@ -19,5 +17,5 @@ pub struct ChangeInvalidateEvent { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } diff --git a/lambda-events/src/event/documentdb/events/rename_event.rs b/lambda-events/src/event/documentdb/events/rename_event.rs index 6c90ce18..b2575296 100644 --- a/lambda-events/src/event/documentdb/events/rename_event.rs +++ b/lambda-events/src/event/documentdb/events/rename_event.rs @@ -1,8 +1,6 @@ use serde::{Deserialize, Serialize}; #[cfg(feature = "catch-all-fields")] use serde_json::Value; -#[cfg(feature = "catch-all-fields")] -use std::collections::HashMap; use super::commom_types::{AnyDocument, DatabaseCollection, DocumentId, Timestamp}; @@ -27,5 +25,5 @@ pub struct ChangeRenameEvent { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } diff --git a/lambda-events/src/event/documentdb/events/replace_event.rs b/lambda-events/src/event/documentdb/events/replace_event.rs index 12339184..1f81c7fe 100644 --- a/lambda-events/src/event/documentdb/events/replace_event.rs +++ b/lambda-events/src/event/documentdb/events/replace_event.rs @@ -1,8 +1,6 @@ use serde::{Deserialize, Serialize}; #[cfg(feature = "catch-all-fields")] use serde_json::Value; -#[cfg(feature = "catch-all-fields")] -use std::collections::HashMap; use super::commom_types::{AnyDocument, DatabaseCollection, DocumentId, DocumentKeyId, Timestamp}; @@ -26,5 +24,5 @@ pub struct ChangeReplaceEvent { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } diff --git a/lambda-events/src/event/documentdb/events/update_event.rs b/lambda-events/src/event/documentdb/events/update_event.rs index 7a194e57..9bcf9254 100644 --- a/lambda-events/src/event/documentdb/events/update_event.rs +++ b/lambda-events/src/event/documentdb/events/update_event.rs @@ -1,8 +1,6 @@ use serde::{Deserialize, Serialize}; #[cfg(feature = "catch-all-fields")] use serde_json::Value; -#[cfg(feature = "catch-all-fields")] -use std::collections::HashMap; use super::commom_types::{AnyDocument, DatabaseCollection, DocumentId, DocumentKeyId, Timestamp}; @@ -16,7 +14,7 @@ pub struct UpdateTruncate { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -30,7 +28,7 @@ pub struct UpdateDescription { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -54,5 +52,5 @@ pub struct ChangeUpdateEvent { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } diff --git a/lambda-events/src/event/documentdb/mod.rs b/lambda-events/src/event/documentdb/mod.rs index 3db4adad..ca5fd786 100644 --- a/lambda-events/src/event/documentdb/mod.rs +++ b/lambda-events/src/event/documentdb/mod.rs @@ -8,8 +8,6 @@ use self::events::{ use serde::{Deserialize, Serialize}; #[cfg(feature = "catch-all-fields")] use serde_json::Value; -#[cfg(feature = "catch-all-fields")] -use std::collections::HashMap; #[derive(Clone, Debug, Deserialize, Eq, PartialEq, Serialize)] #[serde(tag = "operationType", rename_all = "camelCase")] @@ -32,7 +30,7 @@ pub struct DocumentDbInnerEvent { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -48,7 +46,7 @@ pub struct DocumentDbEvent { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[cfg(test)] diff --git a/lambda-events/src/event/dynamodb/mod.rs b/lambda-events/src/event/dynamodb/mod.rs index b05e2baf..bf67f864 100644 --- a/lambda-events/src/event/dynamodb/mod.rs +++ b/lambda-events/src/event/dynamodb/mod.rs @@ -7,8 +7,6 @@ use chrono::{DateTime, Utc}; use serde::{Deserialize, Serialize}; #[cfg(feature = "catch-all-fields")] use serde_json::Value; -#[cfg(feature = "catch-all-fields")] -use std::collections::HashMap; use std::fmt; #[cfg(test)] @@ -124,7 +122,7 @@ pub struct Event { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `TimeWindowEvent` represents an Amazon Dynamodb event when using time windows @@ -143,7 +141,7 @@ pub struct TimeWindowEvent { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `TimeWindowEventResponse` is the outer structure to report batch item failures for DynamoDBTimeWindowEvent. @@ -159,7 +157,7 @@ pub struct TimeWindowEventResponse { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// EventRecord stores information about each record of a DynamoDb stream event @@ -225,7 +223,7 @@ pub struct EventRecord { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -240,7 +238,7 @@ pub struct UserIdentity { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `DynamoDbStreamRecord` represents a description of a single data modification that was performed on an item @@ -287,7 +285,7 @@ pub struct StreamRecord { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[cfg(test)] diff --git a/lambda-events/src/event/ecr_scan/mod.rs b/lambda-events/src/event/ecr_scan/mod.rs index 52ae57d5..afd7ac58 100644 --- a/lambda-events/src/event/ecr_scan/mod.rs +++ b/lambda-events/src/event/ecr_scan/mod.rs @@ -1,8 +1,6 @@ use serde::{Deserialize, Serialize}; #[cfg(feature = "catch-all-fields")] use serde_json::Value; -#[cfg(feature = "catch-all-fields")] -use std::collections::HashMap; #[derive(Debug, Clone, Eq, PartialEq, Deserialize, Serialize)] #[serde(rename_all = "camelCase")] @@ -29,7 +27,7 @@ pub struct EcrScanEvent { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Debug, Clone, Eq, PartialEq, Deserialize, Serialize)] @@ -53,7 +51,7 @@ pub struct EcrScanEventDetailType { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Debug, Clone, Eq, PartialEq, Deserialize, Serialize)] @@ -82,7 +80,7 @@ pub struct EcrScanEventFindingSeverityCounts { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[cfg(test)] diff --git a/lambda-events/src/event/eventbridge/mod.rs b/lambda-events/src/event/eventbridge/mod.rs index d0fcfcca..7bfe0fe7 100644 --- a/lambda-events/src/event/eventbridge/mod.rs +++ b/lambda-events/src/event/eventbridge/mod.rs @@ -1,8 +1,6 @@ use chrono::{DateTime, Utc}; use serde::{de::DeserializeOwned, Deserialize, Serialize}; use serde_json::Value; -#[cfg(feature = "catch-all-fields")] -use std::collections::HashMap; /// Parse EventBridge events. /// Deserialize the event detail into a structure that's `DeserializeOwned`. @@ -37,7 +35,7 @@ where /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[cfg(test)] diff --git a/lambda-events/src/event/firehose/mod.rs b/lambda-events/src/event/firehose/mod.rs index 105a3629..f385a4f2 100644 --- a/lambda-events/src/event/firehose/mod.rs +++ b/lambda-events/src/event/firehose/mod.rs @@ -27,7 +27,7 @@ pub struct KinesisFirehoseEvent { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Debug, Clone, Eq, PartialEq, Deserialize, Serialize)] @@ -44,7 +44,7 @@ pub struct KinesisFirehoseEventRecord { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Debug, Clone, Eq, PartialEq, Deserialize, Serialize)] @@ -56,7 +56,7 @@ pub struct KinesisFirehoseResponse { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Debug, Clone, Eq, PartialEq, Deserialize, Serialize)] @@ -74,7 +74,7 @@ pub struct KinesisFirehoseResponseRecord { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Debug, Clone, Eq, PartialEq, Deserialize, Serialize)] @@ -88,7 +88,7 @@ pub struct KinesisFirehoseResponseRecordMetadata { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Debug, Clone, Eq, PartialEq, Deserialize, Serialize)] @@ -107,7 +107,7 @@ pub struct KinesisFirehoseRecordMetadata { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[cfg(test)] diff --git a/lambda-events/src/event/iam/mod.rs b/lambda-events/src/event/iam/mod.rs index 99bb9d6f..2c8fb57b 100644 --- a/lambda-events/src/event/iam/mod.rs +++ b/lambda-events/src/event/iam/mod.rs @@ -19,7 +19,7 @@ pub struct IamPolicyDocument { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `IamPolicyStatement` represents one statement from IAM policy with action, effect and resource @@ -40,7 +40,7 @@ pub struct IamPolicyStatement { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } pub type IamPolicyCondition = HashMap>>; diff --git a/lambda-events/src/event/iot/mod.rs b/lambda-events/src/event/iot/mod.rs index 60f8531f..398ca128 100644 --- a/lambda-events/src/event/iot/mod.rs +++ b/lambda-events/src/event/iot/mod.rs @@ -3,8 +3,6 @@ use http::HeaderMap; use serde::{Deserialize, Serialize}; #[cfg(feature = "catch-all-fields")] use serde_json::Value; -#[cfg(feature = "catch-all-fields")] -use std::collections::HashMap; /// `IoTCoreCustomAuthorizerRequest` represents the request to an IoT Core custom authorizer. /// See @@ -22,7 +20,7 @@ pub struct IoTCoreCustomAuthorizerRequest { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Debug, Clone, Eq, PartialEq, Deserialize, Serialize)] @@ -36,7 +34,7 @@ pub struct IoTCoreProtocolData { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Debug, Clone, Eq, PartialEq, Deserialize, Serialize)] @@ -49,7 +47,7 @@ pub struct IoTCoreTlsContext { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Debug, Clone, Eq, PartialEq, Deserialize, Serialize)] @@ -65,7 +63,7 @@ pub struct IoTCoreHttpContext { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Debug, Clone, Eq, PartialEq, Deserialize, Serialize)] @@ -81,7 +79,7 @@ pub struct IoTCoreMqttContext { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Debug, Clone, Eq, PartialEq, Deserialize, Serialize)] @@ -94,7 +92,7 @@ pub struct IoTCoreConnectionMetadata { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `IoTCoreCustomAuthorizerResponse` represents the response from an IoT Core custom authorizer. @@ -113,7 +111,7 @@ pub struct IoTCoreCustomAuthorizerResponse { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[cfg(test)] diff --git a/lambda-events/src/event/iot_1_click/mod.rs b/lambda-events/src/event/iot_1_click/mod.rs index 429f9a6f..191a39e1 100644 --- a/lambda-events/src/event/iot_1_click/mod.rs +++ b/lambda-events/src/event/iot_1_click/mod.rs @@ -18,7 +18,7 @@ pub struct IoTOneClickEvent { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Debug, Clone, Eq, PartialEq, Deserialize, Serialize)] @@ -30,7 +30,7 @@ pub struct IoTOneClickDeviceEvent { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Debug, Clone, Eq, PartialEq, Deserialize, Serialize)] @@ -45,7 +45,7 @@ pub struct IoTOneClickButtonClicked { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Debug, Clone, PartialEq, Deserialize, Serialize)] @@ -64,7 +64,7 @@ pub struct IoTOneClickDeviceInfo { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Debug, Clone, Eq, PartialEq, Deserialize, Serialize)] @@ -85,7 +85,7 @@ pub struct IoTOneClickPlacementInfo { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[cfg(test)] diff --git a/lambda-events/src/event/iot_button/mod.rs b/lambda-events/src/event/iot_button/mod.rs index a571ca9e..3eee91c5 100644 --- a/lambda-events/src/event/iot_button/mod.rs +++ b/lambda-events/src/event/iot_button/mod.rs @@ -1,8 +1,6 @@ use serde::{Deserialize, Serialize}; #[cfg(feature = "catch-all-fields")] use serde_json::Value; -#[cfg(feature = "catch-all-fields")] -use std::collections::HashMap; #[derive(Debug, Clone, Eq, PartialEq, Deserialize, Serialize)] #[serde(rename_all = "camelCase")] @@ -18,7 +16,7 @@ pub struct IoTButtonEvent { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[cfg(test)] diff --git a/lambda-events/src/event/iot_deprecated/mod.rs b/lambda-events/src/event/iot_deprecated/mod.rs index 2c359b05..1e93c154 100644 --- a/lambda-events/src/event/iot_deprecated/mod.rs +++ b/lambda-events/src/event/iot_deprecated/mod.rs @@ -2,8 +2,6 @@ use crate::iot::*; use serde::{Deserialize, Serialize}; #[cfg(feature = "catch-all-fields")] use serde_json::Value; -#[cfg(feature = "catch-all-fields")] -use std::collections::HashMap; /// `IoTCustomAuthorizerRequest` contains data coming in to a custom IoT device gateway authorizer function. /// Deprecated: Use IoTCoreCustomAuthorizerRequest instead. `IoTCustomAuthorizerRequest` does not correctly model the request schema @@ -23,7 +21,7 @@ pub struct IoTCustomAuthorizerRequest { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } pub type IoTHttpContext = IoTCoreHttpContext; @@ -48,5 +46,5 @@ pub struct IoTCustomAuthorizerResponse { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } diff --git a/lambda-events/src/event/kafka/mod.rs b/lambda-events/src/event/kafka/mod.rs index eb9069fd..216387ae 100644 --- a/lambda-events/src/event/kafka/mod.rs +++ b/lambda-events/src/event/kafka/mod.rs @@ -21,7 +21,7 @@ pub struct KafkaEvent { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Debug, Clone, Eq, PartialEq, Deserialize, Serialize)] @@ -42,7 +42,7 @@ pub struct KafkaRecord { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[cfg(test)] diff --git a/lambda-events/src/event/kinesis/analytics.rs b/lambda-events/src/event/kinesis/analytics.rs index 918a2ab5..b8c6ec6e 100644 --- a/lambda-events/src/event/kinesis/analytics.rs +++ b/lambda-events/src/event/kinesis/analytics.rs @@ -2,8 +2,6 @@ use crate::encodings::Base64Data; use serde::{Deserialize, Serialize}; #[cfg(feature = "catch-all-fields")] use serde_json::Value; -#[cfg(feature = "catch-all-fields")] -use std::collections::HashMap; #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] #[serde(rename_all = "camelCase")] @@ -18,7 +16,7 @@ pub struct KinesisAnalyticsOutputDeliveryEvent { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -32,7 +30,7 @@ pub struct KinesisAnalyticsOutputDeliveryEventRecord { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -44,7 +42,7 @@ pub struct KinesisAnalyticsOutputDeliveryResponse { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -60,5 +58,5 @@ pub struct KinesisAnalyticsOutputDeliveryResponseRecord { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } diff --git a/lambda-events/src/event/kinesis/event.rs b/lambda-events/src/event/kinesis/event.rs index 1eea4c8e..6f7124cd 100644 --- a/lambda-events/src/event/kinesis/event.rs +++ b/lambda-events/src/event/kinesis/event.rs @@ -5,8 +5,6 @@ use crate::{ use serde::{Deserialize, Serialize}; #[cfg(feature = "catch-all-fields")] use serde_json::Value; -#[cfg(feature = "catch-all-fields")] -use std::collections::HashMap; #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] #[serde(rename_all = "camelCase")] @@ -18,7 +16,7 @@ pub struct KinesisEvent { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `KinesisTimeWindowEvent` represents an Amazon Dynamodb event when using time windows @@ -37,7 +35,7 @@ pub struct KinesisTimeWindowEvent { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `KinesisTimeWindowEventResponse` is the outer structure to report batch item failures for KinesisTimeWindowEvent. @@ -53,7 +51,7 @@ pub struct KinesisTimeWindowEventResponse { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -84,7 +82,7 @@ pub struct KinesisEventRecord { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -105,7 +103,7 @@ pub struct KinesisRecord { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] diff --git a/lambda-events/src/event/lambda_function_urls/mod.rs b/lambda-events/src/event/lambda_function_urls/mod.rs index 227b8a17..f9b56ba3 100644 --- a/lambda-events/src/event/lambda_function_urls/mod.rs +++ b/lambda-events/src/event/lambda_function_urls/mod.rs @@ -32,7 +32,7 @@ pub struct LambdaFunctionUrlRequest { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `LambdaFunctionUrlRequestContext` contains the information to identify the AWS account and resources invoking the Lambda function. @@ -63,7 +63,7 @@ pub struct LambdaFunctionUrlRequestContext { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `LambdaFunctionUrlRequestContextAuthorizerDescription` contains authorizer information for the request context. @@ -76,7 +76,7 @@ pub struct LambdaFunctionUrlRequestContextAuthorizerDescription { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `LambdaFunctionUrlRequestContextAuthorizerIamDescription` contains IAM information for the request context. @@ -98,7 +98,7 @@ pub struct LambdaFunctionUrlRequestContextAuthorizerIamDescription { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `LambdaFunctionUrlRequestContextHttpDescription` contains HTTP information for the request context. @@ -120,7 +120,7 @@ pub struct LambdaFunctionUrlRequestContextHttpDescription { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `LambdaFunctionUrlResponse` configures the HTTP response to be returned by Lambda Function URL for the request. @@ -140,5 +140,5 @@ pub struct LambdaFunctionUrlResponse { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } diff --git a/lambda-events/src/event/lex/mod.rs b/lambda-events/src/event/lex/mod.rs index b6db41d1..0a19c788 100644 --- a/lambda-events/src/event/lex/mod.rs +++ b/lambda-events/src/event/lex/mod.rs @@ -27,7 +27,7 @@ pub struct LexEvent { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Debug, Clone, Eq, PartialEq, Deserialize, Serialize)] @@ -41,7 +41,7 @@ pub struct LexBot { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Debug, Clone, PartialEq, Deserialize, Serialize)] @@ -59,7 +59,7 @@ pub struct LexCurrentIntent { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Debug, Clone, PartialEq, Deserialize, Serialize)] @@ -77,7 +77,7 @@ pub struct LexAlternativeIntents { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Debug, Clone, Eq, PartialEq, Deserialize, Serialize)] @@ -90,7 +90,7 @@ pub struct SlotDetail { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Debug, Clone, Eq, PartialEq, Deserialize, Serialize)] @@ -110,7 +110,7 @@ pub struct LexDialogAction { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } pub type SessionAttributes = HashMap; @@ -127,7 +127,7 @@ pub struct LexResponse { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Debug, Clone, Eq, PartialEq, Deserialize, Serialize)] @@ -141,7 +141,7 @@ pub struct LexResponseCard { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Debug, Clone, Eq, PartialEq, Deserialize, Serialize)] @@ -157,7 +157,7 @@ pub struct Attachment { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[cfg(test)] diff --git a/lambda-events/src/event/rabbitmq/mod.rs b/lambda-events/src/event/rabbitmq/mod.rs index c44f79d7..f261b074 100644 --- a/lambda-events/src/event/rabbitmq/mod.rs +++ b/lambda-events/src/event/rabbitmq/mod.rs @@ -20,7 +20,7 @@ pub struct RabbitMqEvent { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Debug, Clone, Eq, PartialEq, Deserialize, Serialize)] @@ -35,7 +35,7 @@ pub struct RabbitMqMessage { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Debug, Clone, Eq, PartialEq, Deserialize, Serialize)] @@ -73,7 +73,7 @@ where /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[cfg(test)] diff --git a/lambda-events/src/event/s3/batch_job.rs b/lambda-events/src/event/s3/batch_job.rs index c3463ed2..8db1fe7c 100644 --- a/lambda-events/src/event/s3/batch_job.rs +++ b/lambda-events/src/event/s3/batch_job.rs @@ -1,8 +1,6 @@ use serde::{Deserialize, Serialize}; #[cfg(feature = "catch-all-fields")] use serde_json::Value; -#[cfg(feature = "catch-all-fields")] -use std::collections::HashMap; /// `S3BatchJobEvent` encapsulates the detail of a s3 batch job #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -19,7 +17,7 @@ pub struct S3BatchJobEvent { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `S3BatchJob` whichs have the job id @@ -33,7 +31,7 @@ pub struct S3BatchJob { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `S3BatchJobTask` represents one task in the s3 batch job and have all task details @@ -53,7 +51,7 @@ pub struct S3BatchJobTask { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `S3BatchJobResponse` is the response of a iven s3 batch job with the results @@ -72,7 +70,7 @@ pub struct S3BatchJobResponse { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `S3BatchJobResult` represents the result of a given task @@ -90,5 +88,5 @@ pub struct S3BatchJobResult { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } diff --git a/lambda-events/src/event/s3/event.rs b/lambda-events/src/event/s3/event.rs index 5ae1e38f..35221345 100644 --- a/lambda-events/src/event/s3/event.rs +++ b/lambda-events/src/event/s3/event.rs @@ -17,7 +17,7 @@ pub struct S3Event { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `S3EventRecord` which wrap record data @@ -45,7 +45,7 @@ pub struct S3EventRecord { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -58,7 +58,7 @@ pub struct S3UserIdentity { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -72,7 +72,7 @@ pub struct S3RequestParameters { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -90,7 +90,7 @@ pub struct S3Entity { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -107,7 +107,7 @@ pub struct S3Bucket { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -129,7 +129,7 @@ pub struct S3Object { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[cfg(test)] diff --git a/lambda-events/src/event/s3/object_lambda.rs b/lambda-events/src/event/s3/object_lambda.rs index 9215ab3f..181bb0c6 100644 --- a/lambda-events/src/event/s3/object_lambda.rs +++ b/lambda-events/src/event/s3/object_lambda.rs @@ -29,7 +29,7 @@ where /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `GetObjectContext` contains the input and output details @@ -45,7 +45,7 @@ pub struct GetObjectContext { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `HeadObjectContext` @@ -59,7 +59,7 @@ pub struct HeadObjectContext { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `ListObjectsContext` @@ -73,7 +73,7 @@ pub struct ListObjectsContext { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `ListObjectsV2Context` @@ -87,7 +87,7 @@ pub struct ListObjectsV2Context { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `Configuration` contains information about the Object Lambda access point @@ -107,7 +107,7 @@ where /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `UserRequest` contains information about the original call to S3 Object Lambda @@ -123,7 +123,7 @@ pub struct UserRequest { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `UserIdentity` contains details about the identity that made the call to S3 Object Lambda @@ -141,7 +141,7 @@ pub struct UserIdentity { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -155,7 +155,7 @@ pub struct SessionContext { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -171,7 +171,7 @@ pub struct SessionIssuer { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[cfg(test)] diff --git a/lambda-events/src/event/secretsmanager/mod.rs b/lambda-events/src/event/secretsmanager/mod.rs index 5dcb4c52..b8734628 100644 --- a/lambda-events/src/event/secretsmanager/mod.rs +++ b/lambda-events/src/event/secretsmanager/mod.rs @@ -1,8 +1,6 @@ use serde::{Deserialize, Serialize}; #[cfg(feature = "catch-all-fields")] use serde_json::Value; -#[cfg(feature = "catch-all-fields")] -use std::collections::HashMap; #[derive(Debug, Clone, Eq, PartialEq, Deserialize, Serialize)] #[serde(rename_all = "PascalCase")] @@ -15,7 +13,7 @@ pub struct SecretsManagerSecretRotationEvent { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[cfg(test)] diff --git a/lambda-events/src/event/ses/mod.rs b/lambda-events/src/event/ses/mod.rs index 1b21a75a..a8ea90d1 100644 --- a/lambda-events/src/event/ses/mod.rs +++ b/lambda-events/src/event/ses/mod.rs @@ -2,8 +2,6 @@ use chrono::{DateTime, Utc}; use serde::{Deserialize, Serialize}; #[cfg(feature = "catch-all-fields")] use serde_json::Value; -#[cfg(feature = "catch-all-fields")] -use std::collections::HashMap; /// `SimpleEmailEvent` is the outer structure of an event sent via SES. #[derive(Debug, Clone, Eq, PartialEq, Deserialize, Serialize)] @@ -16,7 +14,7 @@ pub struct SimpleEmailEvent { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Debug, Clone, Eq, PartialEq, Deserialize, Serialize)] @@ -32,7 +30,7 @@ pub struct SimpleEmailRecord { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Debug, Clone, Eq, PartialEq, Deserialize, Serialize)] @@ -46,7 +44,7 @@ pub struct SimpleEmailService { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Debug, Clone, Eq, PartialEq, Deserialize, Serialize)] @@ -66,7 +64,7 @@ pub struct SimpleEmailMessage { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Debug, Clone, Eq, PartialEq, Deserialize, Serialize)] @@ -88,7 +86,7 @@ pub struct SimpleEmailReceipt { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Debug, Clone, Eq, PartialEq, Deserialize, Serialize)] @@ -103,7 +101,7 @@ pub struct SimpleEmailHeader { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Debug, Clone, Eq, PartialEq, Deserialize, Serialize)] @@ -124,7 +122,7 @@ pub struct SimpleEmailCommonHeaders { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `SimpleEmailReceiptAction` is a logical union of fields present in all action @@ -151,7 +149,7 @@ pub struct SimpleEmailReceiptAction { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Debug, Clone, Eq, PartialEq, Deserialize, Serialize)] @@ -164,7 +162,7 @@ pub struct SimpleEmailVerdict { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } pub type SimpleEmailDispositionValue = String; @@ -179,7 +177,7 @@ pub struct SimpleEmailDisposition { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[cfg(test)] diff --git a/lambda-events/src/event/sns/mod.rs b/lambda-events/src/event/sns/mod.rs index 7ea20282..89eee686 100644 --- a/lambda-events/src/event/sns/mod.rs +++ b/lambda-events/src/event/sns/mod.rs @@ -19,7 +19,7 @@ pub struct SnsEvent { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// SnsRecord stores information about each record of a SNS event @@ -43,7 +43,7 @@ pub struct SnsRecord { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// SnsMessage stores information about each record of a SNS event @@ -98,7 +98,7 @@ pub struct SnsMessage { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// An alternate `Event` notification event to use alongside `SnsRecordObj` and `SnsMessageObj` if you want to deserialize an object inside your SNS messages rather than getting an `Option` message @@ -115,7 +115,7 @@ pub struct SnsEventObj { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// Alternative to `SnsRecord`, used alongside `SnsEventObj` and `SnsMessageObj` when deserializing nested objects from within SNS messages) @@ -140,7 +140,7 @@ pub struct SnsRecordObj { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// Alternate version of `SnsMessage` to use in conjunction with `SnsEventObj` and `SnsRecordObj` for deserializing the message into a struct of type `T` @@ -199,7 +199,7 @@ pub struct SnsMessageObj { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// Structured metadata items (such as timestamps, geospatial data, signatures, and identifiers) about the message. @@ -222,7 +222,7 @@ pub struct MessageAttribute { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, PartialEq, Serialize)] @@ -244,7 +244,7 @@ pub struct CloudWatchAlarmPayload { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, PartialEq, Serialize)] @@ -270,7 +270,7 @@ pub struct CloudWatchAlarmTrigger { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, PartialEq, Serialize)] @@ -288,7 +288,7 @@ pub struct CloudWatchMetricDataQuery { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, PartialEq, Serialize)] @@ -303,7 +303,7 @@ pub struct CloudWatchMetricStat { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, PartialEq, Serialize)] @@ -318,7 +318,7 @@ pub struct CloudWatchMetric { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -330,7 +330,7 @@ pub struct CloudWatchDimension { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[cfg(test)] diff --git a/lambda-events/src/event/sqs/mod.rs b/lambda-events/src/event/sqs/mod.rs index 729eff90..81016fc4 100644 --- a/lambda-events/src/event/sqs/mod.rs +++ b/lambda-events/src/event/sqs/mod.rs @@ -15,7 +15,7 @@ pub struct SqsEvent { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// An individual SQS Message, its metadata, and Message Attributes @@ -51,7 +51,7 @@ pub struct SqsMessage { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// Alternative to `SqsEvent` to be used alongside `SqsMessageObj` when you need to deserialize a nested object into a struct of type `T` within the SQS Message rather than just using the raw SQS Message string @@ -67,7 +67,7 @@ pub struct SqsEventObj { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// Alternative to `SqsMessage` to be used alongside `SqsEventObj` when you need to deserialize a nested object into a struct of type `T` within the SQS Message rather than just using the raw SQS Message string @@ -108,7 +108,7 @@ pub struct SqsMessageObj { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -127,7 +127,7 @@ pub struct SqsMessageAttribute { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -139,7 +139,7 @@ pub struct SqsBatchResponse { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] @@ -151,7 +151,7 @@ pub struct BatchItemFailure { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// The Event sent to Lambda from the SQS API. Contains 1 or more individual SQS Messages @@ -166,7 +166,7 @@ pub struct SqsApiEventObj { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// The Event sent to Lambda from SQS API. Contains 1 or more individual SQS Messages @@ -179,7 +179,7 @@ pub struct SqsApiEvent { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// Alternative to SqsApiEvent to be used alongside `SqsApiMessageObj` when you need to @@ -214,7 +214,7 @@ pub struct SqsApiMessageObj { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// An individual SQS API Message, its metadata, and Message Attributes @@ -243,7 +243,7 @@ pub struct SqsApiMessage { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } #[cfg(test)] diff --git a/lambda-events/src/event/streams/mod.rs b/lambda-events/src/event/streams/mod.rs index f9690f5e..58347a2f 100644 --- a/lambda-events/src/event/streams/mod.rs +++ b/lambda-events/src/event/streams/mod.rs @@ -1,8 +1,6 @@ use serde::{Deserialize, Serialize}; #[cfg(feature = "catch-all-fields")] use serde_json::Value; -#[cfg(feature = "catch-all-fields")] -use std::collections::HashMap; /// `KinesisEventResponse` is the outer structure to report batch item failures for KinesisEvent. #[derive(Debug, Clone, Eq, PartialEq, Deserialize, Serialize)] @@ -14,7 +12,7 @@ pub struct KinesisEventResponse { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `KinesisBatchItemFailure` is the individual record which failed processing. @@ -28,7 +26,7 @@ pub struct KinesisBatchItemFailure { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `DynamoDbEventResponse` is the outer structure to report batch item failures for DynamoDBEvent. @@ -41,7 +39,7 @@ pub struct DynamoDbEventResponse { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `DynamoDbBatchItemFailure` is the individual record which failed processing. @@ -55,7 +53,7 @@ pub struct DynamoDbBatchItemFailure { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `SqsEventResponse` is the outer structure to report batch item failures for SQSEvent. @@ -68,7 +66,7 @@ pub struct SqsEventResponse { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } /// `SqsBatchItemFailure` is the individual record which failed processing. @@ -82,5 +80,5 @@ pub struct SqsBatchItemFailure { /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] #[serde(flatten)] - pub other: HashMap, + pub other: serde_json::Map, } From 49754fc29d193bdf64e313febc8726536c301056 Mon Sep 17 00:00:00 2001 From: Craig Disselkoen Date: Thu, 17 Jul 2025 10:53:35 -0400 Subject: [PATCH 3/5] add cfg_attr for docsrs Signed-off-by: Craig Disselkoen --- lambda-events/src/event/activemq/mod.rs | 3 ++ lambda-events/src/event/alb/mod.rs | 4 ++ lambda-events/src/event/apigw/mod.rs | 31 ++++++++++++++ lambda-events/src/event/appsync/mod.rs | 12 ++++++ lambda-events/src/event/autoscaling/mod.rs | 1 + .../src/event/bedrock_agent_runtime/mod.rs | 6 +++ lambda-events/src/event/chime_bot/mod.rs | 4 ++ lambda-events/src/event/clientvpn/mod.rs | 2 + lambda-events/src/event/cloudformation/mod.rs | 4 ++ .../src/event/cloudformation/provider.rs | 2 + .../src/event/cloudwatch_alarms/mod.rs | 13 ++++++ .../src/event/cloudwatch_events/cloudtrail.rs | 7 ++++ .../src/event/cloudwatch_events/codedeploy.rs | 3 ++ .../event/cloudwatch_events/codepipeline.rs | 4 ++ .../src/event/cloudwatch_events/ec2.rs | 1 + .../src/event/cloudwatch_events/emr.rs | 4 ++ .../src/event/cloudwatch_events/gamelift.rs | 12 ++++++ .../src/event/cloudwatch_events/glue.rs | 8 ++++ .../src/event/cloudwatch_events/health.rs | 3 ++ .../src/event/cloudwatch_events/kms.rs | 1 + .../src/event/cloudwatch_events/macie.rs | 19 +++++++++ .../src/event/cloudwatch_events/mod.rs | 1 + .../src/event/cloudwatch_events/opsworks.rs | 4 ++ .../src/event/cloudwatch_events/signin.rs | 4 ++ .../src/event/cloudwatch_events/sms.rs | 1 + .../src/event/cloudwatch_events/ssm.rs | 14 +++++++ .../src/event/cloudwatch_events/tag.rs | 1 + .../event/cloudwatch_events/trustedadvisor.rs | 1 + .../src/event/cloudwatch_logs/mod.rs | 4 ++ lambda-events/src/event/code_commit/mod.rs | 4 ++ lambda-events/src/event/codebuild/mod.rs | 9 ++++ lambda-events/src/event/codedeploy/mod.rs | 3 ++ .../src/event/codepipeline_cloudwatch/mod.rs | 3 ++ .../src/event/codepipeline_job/mod.rs | 11 +++++ lambda-events/src/event/cognito/mod.rs | 42 +++++++++++++++++++ lambda-events/src/event/config/mod.rs | 1 + lambda-events/src/event/connect/mod.rs | 5 +++ .../event/documentdb/events/commom_types.rs | 6 +++ .../event/documentdb/events/delete_event.rs | 1 + .../documentdb/events/drop_database_event.rs | 1 + .../src/event/documentdb/events/drop_event.rs | 1 + .../event/documentdb/events/insert_event.rs | 1 + .../documentdb/events/invalidate_event.rs | 1 + .../event/documentdb/events/rename_event.rs | 1 + .../event/documentdb/events/replace_event.rs | 1 + .../event/documentdb/events/update_event.rs | 3 ++ lambda-events/src/event/documentdb/mod.rs | 2 + lambda-events/src/event/dynamodb/mod.rs | 6 +++ lambda-events/src/event/ecr_scan/mod.rs | 3 ++ lambda-events/src/event/eventbridge/mod.rs | 1 + lambda-events/src/event/firehose/mod.rs | 6 +++ lambda-events/src/event/iam/mod.rs | 2 + lambda-events/src/event/iot/mod.rs | 7 ++++ lambda-events/src/event/iot_1_click/mod.rs | 5 +++ lambda-events/src/event/iot_button/mod.rs | 1 + lambda-events/src/event/iot_deprecated/mod.rs | 2 + lambda-events/src/event/kafka/mod.rs | 2 + lambda-events/src/event/kinesis/analytics.rs | 4 ++ lambda-events/src/event/kinesis/event.rs | 5 +++ .../src/event/lambda_function_urls/mod.rs | 6 +++ lambda-events/src/event/lex/mod.rs | 9 ++++ lambda-events/src/event/rabbitmq/mod.rs | 3 ++ lambda-events/src/event/s3/batch_job.rs | 5 +++ lambda-events/src/event/s3/event.rs | 7 ++++ lambda-events/src/event/s3/object_lambda.rs | 10 +++++ lambda-events/src/event/secretsmanager/mod.rs | 1 + lambda-events/src/event/ses/mod.rs | 10 +++++ lambda-events/src/event/sns/mod.rs | 13 ++++++ lambda-events/src/event/sqs/mod.rs | 11 +++++ lambda-events/src/event/streams/mod.rs | 6 +++ 70 files changed, 395 insertions(+) diff --git a/lambda-events/src/event/activemq/mod.rs b/lambda-events/src/event/activemq/mod.rs index d49cf5ee..c6f33bb3 100644 --- a/lambda-events/src/event/activemq/mod.rs +++ b/lambda-events/src/event/activemq/mod.rs @@ -17,6 +17,7 @@ pub struct ActiveMqEvent { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -53,6 +54,7 @@ pub struct ActiveMqMessage { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -66,6 +68,7 @@ pub struct ActiveMqDestination { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } diff --git a/lambda-events/src/event/alb/mod.rs b/lambda-events/src/event/alb/mod.rs index 7e3bd986..77ac2c33 100644 --- a/lambda-events/src/event/alb/mod.rs +++ b/lambda-events/src/event/alb/mod.rs @@ -36,6 +36,7 @@ pub struct AlbTargetGroupRequest { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -49,6 +50,7 @@ pub struct AlbTargetGroupRequestContext { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -64,6 +66,7 @@ pub struct ElbContext { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -89,6 +92,7 @@ pub struct AlbTargetGroupResponse { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } diff --git a/lambda-events/src/event/apigw/mod.rs b/lambda-events/src/event/apigw/mod.rs index e867c8e5..1caf37b2 100644 --- a/lambda-events/src/event/apigw/mod.rs +++ b/lambda-events/src/event/apigw/mod.rs @@ -51,6 +51,7 @@ pub struct ApiGatewayProxyRequest { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -74,6 +75,7 @@ pub struct ApiGatewayProxyResponse { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -126,6 +128,7 @@ pub struct ApiGatewayProxyRequestContext { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -182,6 +185,7 @@ pub struct ApiGatewayV2httpRequest { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -220,6 +224,7 @@ pub struct ApiGatewayV2httpRequestContext { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -243,6 +248,7 @@ pub struct ApiGatewayRequestAuthorizer { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -260,6 +266,7 @@ pub struct ApiGatewayRequestAuthorizerJwtDescription { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -286,6 +293,7 @@ pub struct ApiGatewayRequestAuthorizerIamDescription { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -303,6 +311,7 @@ pub struct ApiGatewayRequestAuthorizerCognitoIdentity { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -325,6 +334,7 @@ pub struct ApiGatewayV2httpRequestContextHttpDescription { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -349,6 +359,7 @@ pub struct ApiGatewayV2httpResponse { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -388,6 +399,7 @@ pub struct ApiGatewayRequestIdentity { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -433,6 +445,7 @@ pub struct ApiGatewayWebsocketProxyRequest { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -503,6 +516,7 @@ pub struct ApiGatewayWebsocketProxyRequestContext { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -523,6 +537,7 @@ pub struct ApiGatewayCustomAuthorizerRequestTypeRequestIdentity { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -546,6 +561,7 @@ pub struct ApiGatewayCustomAuthorizerRequestTypeRequestIdentityClientCert { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -562,6 +578,7 @@ pub struct ApiGatewayCustomAuthorizerRequestTypeRequestIdentityClientCertValidit /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -576,6 +593,7 @@ pub struct ApiGatewayV2httpRequestContextAuthentication { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -599,6 +617,7 @@ pub struct ApiGatewayV2httpRequestContextAuthenticationClientCert { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -615,6 +634,7 @@ pub struct ApiGatewayV2httpRequestContextAuthenticationClientCertValidity { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -644,6 +664,7 @@ pub struct ApiGatewayV2CustomAuthorizerV1RequestTypeRequestContext { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -685,6 +706,7 @@ pub struct ApiGatewayV2CustomAuthorizerV1Request { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -726,6 +748,7 @@ pub struct ApiGatewayV2CustomAuthorizerV2Request { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -744,6 +767,7 @@ pub struct ApiGatewayCustomAuthorizerContext { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -778,6 +802,7 @@ pub struct ApiGatewayCustomAuthorizerRequestTypeRequestContext { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -797,6 +822,7 @@ pub struct ApiGatewayCustomAuthorizerRequest { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -840,6 +866,7 @@ pub struct ApiGatewayCustomAuthorizerRequestTypeRequest { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -862,6 +889,7 @@ where /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -881,6 +909,7 @@ where /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -901,6 +930,7 @@ where /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -916,6 +946,7 @@ pub struct ApiGatewayCustomAuthorizerPolicy { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } diff --git a/lambda-events/src/event/appsync/mod.rs b/lambda-events/src/event/appsync/mod.rs index 37ec5b7f..c14f5734 100644 --- a/lambda-events/src/event/appsync/mod.rs +++ b/lambda-events/src/event/appsync/mod.rs @@ -21,6 +21,7 @@ where /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -48,6 +49,7 @@ pub struct AppSyncIamIdentity { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -77,6 +79,7 @@ where /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -94,6 +97,7 @@ pub struct AppSyncLambdaAuthorizerRequest { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -126,6 +130,7 @@ where /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -149,6 +154,7 @@ where /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -187,6 +193,7 @@ where /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -206,6 +213,7 @@ pub struct AppSyncRequest { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -229,6 +237,7 @@ where /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -245,6 +254,7 @@ where /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -274,6 +284,7 @@ where /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -291,6 +302,7 @@ where /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } diff --git a/lambda-events/src/event/autoscaling/mod.rs b/lambda-events/src/event/autoscaling/mod.rs index ab798e04..29ff8a21 100644 --- a/lambda-events/src/event/autoscaling/mod.rs +++ b/lambda-events/src/event/autoscaling/mod.rs @@ -45,6 +45,7 @@ where /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } diff --git a/lambda-events/src/event/bedrock_agent_runtime/mod.rs b/lambda-events/src/event/bedrock_agent_runtime/mod.rs index a2f3e503..baa6ec41 100644 --- a/lambda-events/src/event/bedrock_agent_runtime/mod.rs +++ b/lambda-events/src/event/bedrock_agent_runtime/mod.rs @@ -35,6 +35,7 @@ pub struct AgentEvent { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -48,6 +49,7 @@ pub struct RequestBody { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -61,6 +63,7 @@ pub struct Content { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -78,6 +81,7 @@ pub struct Property { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -95,6 +99,7 @@ pub struct Parameter { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -114,6 +119,7 @@ pub struct Agent { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } diff --git a/lambda-events/src/event/chime_bot/mod.rs b/lambda-events/src/event/chime_bot/mod.rs index 240bb151..c708fb68 100644 --- a/lambda-events/src/event/chime_bot/mod.rs +++ b/lambda-events/src/event/chime_bot/mod.rs @@ -23,6 +23,7 @@ pub struct ChimeBotEvent { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -40,6 +41,7 @@ pub struct ChimeBotEventSender { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -57,6 +59,7 @@ pub struct ChimeBotEventDiscussion { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -74,6 +77,7 @@ pub struct ChimeBotEventInboundHttpsEndpoint { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } diff --git a/lambda-events/src/event/clientvpn/mod.rs b/lambda-events/src/event/clientvpn/mod.rs index 50ae3477..63b555f9 100644 --- a/lambda-events/src/event/clientvpn/mod.rs +++ b/lambda-events/src/event/clientvpn/mod.rs @@ -35,6 +35,7 @@ pub struct ClientVpnConnectionHandlerRequest { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -55,6 +56,7 @@ pub struct ClientVpnConnectionHandlerResponse { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } diff --git a/lambda-events/src/event/cloudformation/mod.rs b/lambda-events/src/event/cloudformation/mod.rs index ada66edd..0236a1f2 100644 --- a/lambda-events/src/event/cloudformation/mod.rs +++ b/lambda-events/src/event/cloudformation/mod.rs @@ -39,6 +39,7 @@ where /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -67,6 +68,7 @@ where /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -92,6 +94,7 @@ where /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -111,6 +114,7 @@ pub struct CloudFormationCustomResourceResponse { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } diff --git a/lambda-events/src/event/cloudformation/provider.rs b/lambda-events/src/event/cloudformation/provider.rs index 63d3c59b..e0fffadf 100644 --- a/lambda-events/src/event/cloudformation/provider.rs +++ b/lambda-events/src/event/cloudformation/provider.rs @@ -79,6 +79,7 @@ where /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -97,6 +98,7 @@ where /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } diff --git a/lambda-events/src/event/cloudwatch_alarms/mod.rs b/lambda-events/src/event/cloudwatch_alarms/mod.rs index 8ade45c6..3c41653c 100644 --- a/lambda-events/src/event/cloudwatch_alarms/mod.rs +++ b/lambda-events/src/event/cloudwatch_alarms/mod.rs @@ -37,6 +37,7 @@ where /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -69,6 +70,7 @@ where /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -92,6 +94,7 @@ where /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -107,6 +110,7 @@ pub struct CloudWatchMetricAlarmConfiguration { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -122,6 +126,7 @@ pub struct CloudWatchMetricDefinition { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -139,6 +144,7 @@ pub struct CloudWatchMetricStatDefinition { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -154,6 +160,7 @@ pub struct CloudWatchMetricStatMetricDefinition { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -169,6 +176,7 @@ pub struct CloudWatchCompositeAlarmConfiguration { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -221,6 +229,7 @@ pub struct CloudWatchAlarmStateReasonDataMetric { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -239,6 +248,7 @@ pub struct CloudWatchAlarmStateEvaluatedDatapoint { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -252,6 +262,7 @@ pub struct ClodWatchAlarmStateReasonDataComposite { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -265,6 +276,7 @@ pub struct CloudWatchAlarmStateTriggeringAlarm { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -279,6 +291,7 @@ pub struct CloudWatchAlarmStateTriggeringAlarmState { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } diff --git a/lambda-events/src/event/cloudwatch_events/cloudtrail.rs b/lambda-events/src/event/cloudwatch_events/cloudtrail.rs index a355cffb..81060b44 100644 --- a/lambda-events/src/event/cloudwatch_events/cloudtrail.rs +++ b/lambda-events/src/event/cloudwatch_events/cloudtrail.rs @@ -27,6 +27,7 @@ pub struct AWSAPICall { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -43,6 +44,7 @@ pub struct SessionIssuer { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -56,6 +58,7 @@ pub struct WebIdFederationData { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -69,6 +72,7 @@ pub struct Attributes { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -85,6 +89,7 @@ pub struct SessionContext { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -98,6 +103,7 @@ pub struct OnBehalfOf { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -119,6 +125,7 @@ pub struct UserIdentity { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } diff --git a/lambda-events/src/event/cloudwatch_events/codedeploy.rs b/lambda-events/src/event/cloudwatch_events/codedeploy.rs index 6454abd5..9be0fa50 100644 --- a/lambda-events/src/event/cloudwatch_events/codedeploy.rs +++ b/lambda-events/src/event/cloudwatch_events/codedeploy.rs @@ -15,6 +15,7 @@ pub struct StateChangeNotification { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -33,6 +34,7 @@ pub struct DeploymentStateChangeNotification { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -49,6 +51,7 @@ pub struct InstanceStateChangeNotification { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } diff --git a/lambda-events/src/event/cloudwatch_events/codepipeline.rs b/lambda-events/src/event/cloudwatch_events/codepipeline.rs index c3976522..0c25c09c 100644 --- a/lambda-events/src/event/cloudwatch_events/codepipeline.rs +++ b/lambda-events/src/event/cloudwatch_events/codepipeline.rs @@ -14,6 +14,7 @@ pub struct PipelineExecutionStateChange { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -31,6 +32,7 @@ pub struct StageExecutionStateChange { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -52,6 +54,7 @@ pub struct ActionExecutionStateChange { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -67,6 +70,7 @@ pub struct ActionExecutionStateChangeType { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } diff --git a/lambda-events/src/event/cloudwatch_events/ec2.rs b/lambda-events/src/event/cloudwatch_events/ec2.rs index 21a84a65..ed0cb590 100644 --- a/lambda-events/src/event/cloudwatch_events/ec2.rs +++ b/lambda-events/src/event/cloudwatch_events/ec2.rs @@ -12,6 +12,7 @@ pub struct InstanceStateChange { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } diff --git a/lambda-events/src/event/cloudwatch_events/emr.rs b/lambda-events/src/event/cloudwatch_events/emr.rs index bb72192b..9253b962 100644 --- a/lambda-events/src/event/cloudwatch_events/emr.rs +++ b/lambda-events/src/event/cloudwatch_events/emr.rs @@ -14,6 +14,7 @@ pub struct AutoScalingPolicyStateChange { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -31,6 +32,7 @@ pub struct ClusterStateChange { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -52,6 +54,7 @@ pub struct InstanceGroupStateChange { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -70,6 +73,7 @@ pub struct StepStatusChange { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } diff --git a/lambda-events/src/event/cloudwatch_events/gamelift.rs b/lambda-events/src/event/cloudwatch_events/gamelift.rs index 7d7554d8..98c2aee0 100644 --- a/lambda-events/src/event/cloudwatch_events/gamelift.rs +++ b/lambda-events/src/event/cloudwatch_events/gamelift.rs @@ -15,6 +15,7 @@ pub struct MatchmakingSearching { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -29,6 +30,7 @@ pub struct Ticket { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -45,6 +47,7 @@ pub struct Player { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -57,6 +60,7 @@ pub struct GameSessionInfo { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -75,6 +79,7 @@ pub struct PotentialMatchCreated { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -89,6 +94,7 @@ pub struct RuleEvaluationMetric { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -104,6 +110,7 @@ pub struct AcceptMatch { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -120,6 +127,7 @@ pub struct AcceptMatchCompleted { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -135,6 +143,7 @@ pub struct MatchmakingSucceeded { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -152,6 +161,7 @@ pub struct MatchmakingTimedOut { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -169,6 +179,7 @@ pub struct MatchmakingCancelled { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -187,6 +198,7 @@ pub struct MatchmakingFailed { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } diff --git a/lambda-events/src/event/cloudwatch_events/glue.rs b/lambda-events/src/event/cloudwatch_events/glue.rs index 14e30cda..9aa4479e 100644 --- a/lambda-events/src/event/cloudwatch_events/glue.rs +++ b/lambda-events/src/event/cloudwatch_events/glue.rs @@ -14,6 +14,7 @@ pub struct JobRunStateChange { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -30,6 +31,7 @@ pub struct CrawlerStarted { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -56,6 +58,7 @@ pub struct CrawlerSucceeded { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -73,6 +76,7 @@ pub struct CrawlerFailed { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -91,6 +95,7 @@ pub struct JobRunStatus { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -104,6 +109,7 @@ pub struct NotificationCondition { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -119,6 +125,7 @@ pub struct DataCatalogTableStateChange { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -133,6 +140,7 @@ pub struct DataCatalogDatabaseStateChange { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } diff --git a/lambda-events/src/event/cloudwatch_events/health.rs b/lambda-events/src/event/cloudwatch_events/health.rs index cfea569f..6990320e 100644 --- a/lambda-events/src/event/cloudwatch_events/health.rs +++ b/lambda-events/src/event/cloudwatch_events/health.rs @@ -18,6 +18,7 @@ pub struct Event { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -31,6 +32,7 @@ pub struct EventDescription { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -44,6 +46,7 @@ pub struct Entity { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } diff --git a/lambda-events/src/event/cloudwatch_events/kms.rs b/lambda-events/src/event/cloudwatch_events/kms.rs index 1dfe2fc7..33ae40fd 100644 --- a/lambda-events/src/event/cloudwatch_events/kms.rs +++ b/lambda-events/src/event/cloudwatch_events/kms.rs @@ -11,6 +11,7 @@ pub struct CMKEvent { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } diff --git a/lambda-events/src/event/cloudwatch_events/macie.rs b/lambda-events/src/event/cloudwatch_events/macie.rs index cea4e0b8..2bd7666d 100644 --- a/lambda-events/src/event/cloudwatch_events/macie.rs +++ b/lambda-events/src/event/cloudwatch_events/macie.rs @@ -1,5 +1,6 @@ use serde::{Deserialize, Serialize}; #[cfg(feature = "catch-all-fields")] +#[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] use serde_json::Value; use std::collections::HashMap; @@ -24,6 +25,7 @@ pub struct Alert { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -47,6 +49,7 @@ pub struct Trigger { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -75,6 +78,7 @@ pub struct BucketScanSummary { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -92,6 +96,7 @@ pub struct Ip { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -106,6 +111,7 @@ pub struct TimeRange { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -119,6 +125,7 @@ pub struct Location { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -134,6 +141,7 @@ pub struct ActionInfo { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -157,6 +165,7 @@ pub struct BucketWritableSummary { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -170,6 +179,7 @@ pub struct Bucket { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -183,6 +193,7 @@ pub struct Acl { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -198,6 +209,7 @@ pub struct SecretBucketName { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -213,6 +225,7 @@ pub struct Owner { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -228,6 +241,7 @@ pub struct Grant { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -242,6 +256,7 @@ pub struct Grantee { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -269,6 +284,7 @@ pub struct BucketContainsHighRiskObjectSummary { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -293,6 +309,7 @@ pub struct AlertUpdated { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -307,6 +324,7 @@ pub struct UpdatedTrigger { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -326,6 +344,7 @@ pub struct FeatureInfo { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } diff --git a/lambda-events/src/event/cloudwatch_events/mod.rs b/lambda-events/src/event/cloudwatch_events/mod.rs index f6efe7d6..54da8b27 100644 --- a/lambda-events/src/event/cloudwatch_events/mod.rs +++ b/lambda-events/src/event/cloudwatch_events/mod.rs @@ -50,6 +50,7 @@ where /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } diff --git a/lambda-events/src/event/cloudwatch_events/opsworks.rs b/lambda-events/src/event/cloudwatch_events/opsworks.rs index 1d263f03..5f687dc4 100644 --- a/lambda-events/src/event/cloudwatch_events/opsworks.rs +++ b/lambda-events/src/event/cloudwatch_events/opsworks.rs @@ -21,6 +21,7 @@ pub struct InstanceStateChange { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -38,6 +39,7 @@ pub struct CommandStateChange { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -58,6 +60,7 @@ pub struct DeploymentStateChange { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -75,6 +78,7 @@ pub struct Alert { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } diff --git a/lambda-events/src/event/cloudwatch_events/signin.rs b/lambda-events/src/event/cloudwatch_events/signin.rs index 6dad366c..c8f7ab25 100644 --- a/lambda-events/src/event/cloudwatch_events/signin.rs +++ b/lambda-events/src/event/cloudwatch_events/signin.rs @@ -23,6 +23,7 @@ pub struct SignIn { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -38,6 +39,7 @@ pub struct UserIdentity { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -51,6 +53,7 @@ pub struct ResponseElements { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -68,6 +71,7 @@ pub struct AdditionalEventData { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } diff --git a/lambda-events/src/event/cloudwatch_events/sms.rs b/lambda-events/src/event/cloudwatch_events/sms.rs index 0f1121f6..5c7e2a61 100644 --- a/lambda-events/src/event/cloudwatch_events/sms.rs +++ b/lambda-events/src/event/cloudwatch_events/sms.rs @@ -17,6 +17,7 @@ pub struct JobStateChange { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } diff --git a/lambda-events/src/event/cloudwatch_events/ssm.rs b/lambda-events/src/event/cloudwatch_events/ssm.rs index abf2c887..7d4d3524 100644 --- a/lambda-events/src/event/cloudwatch_events/ssm.rs +++ b/lambda-events/src/event/cloudwatch_events/ssm.rs @@ -28,6 +28,7 @@ pub struct EC2AutomationStepStatusChange { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -55,6 +56,7 @@ pub struct EC2AutomationExecutionStatusChange { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -69,6 +71,7 @@ pub struct StateChange { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -93,6 +96,7 @@ pub struct ConfigurationComplianceStateChange { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -109,6 +113,7 @@ pub struct MaintenanceWindowTargetRegistration { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -129,6 +134,7 @@ pub struct MaintenanceWindowExecutionStateChange { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -151,6 +157,7 @@ pub struct MaintenanceWindowTaskExecutionStateChange { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -177,6 +184,7 @@ pub struct MaintenanceWindowTaskTargetInvocationStateChange { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -191,6 +199,7 @@ pub struct MaintenanceWindowStateChange { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -206,6 +215,7 @@ pub struct ParameterStoreStateChange { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -227,6 +237,7 @@ pub struct EC2CommandStatusChange { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -247,6 +258,7 @@ pub struct EC2CommandInvocationStatusChange { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -282,6 +294,7 @@ pub struct EC2StateManagerAssociationStateChange { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -319,6 +332,7 @@ pub struct EC2StateManagerInstanceAssociationStateChange { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } diff --git a/lambda-events/src/event/cloudwatch_events/tag.rs b/lambda-events/src/event/cloudwatch_events/tag.rs index 30937534..df6970c0 100644 --- a/lambda-events/src/event/cloudwatch_events/tag.rs +++ b/lambda-events/src/event/cloudwatch_events/tag.rs @@ -18,6 +18,7 @@ pub struct TagChangeOnResource { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } diff --git a/lambda-events/src/event/cloudwatch_events/trustedadvisor.rs b/lambda-events/src/event/cloudwatch_events/trustedadvisor.rs index f31d74ef..b5e00c23 100644 --- a/lambda-events/src/event/cloudwatch_events/trustedadvisor.rs +++ b/lambda-events/src/event/cloudwatch_events/trustedadvisor.rs @@ -18,6 +18,7 @@ pub struct CheckItemRefreshNotification { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } diff --git a/lambda-events/src/event/cloudwatch_logs/mod.rs b/lambda-events/src/event/cloudwatch_logs/mod.rs index ff70fdd0..3002edfc 100644 --- a/lambda-events/src/event/cloudwatch_logs/mod.rs +++ b/lambda-events/src/event/cloudwatch_logs/mod.rs @@ -4,6 +4,7 @@ use serde::{ Deserialize, Deserializer, Serialize, Serializer, }; #[cfg(feature = "catch-all-fields")] +#[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] use serde_json::Value; use std::{fmt, io::BufReader}; @@ -18,6 +19,7 @@ pub struct LogsEvent { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -49,6 +51,7 @@ pub struct LogData { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -66,6 +69,7 @@ pub struct LogEntry { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } diff --git a/lambda-events/src/event/code_commit/mod.rs b/lambda-events/src/event/code_commit/mod.rs index 3fbdddba..eca911d4 100644 --- a/lambda-events/src/event/code_commit/mod.rs +++ b/lambda-events/src/event/code_commit/mod.rs @@ -15,6 +15,7 @@ pub struct CodeCommitEvent { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -56,6 +57,7 @@ pub struct CodeCommitRecord { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -72,6 +74,7 @@ pub struct CodeCommitCodeCommit { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -90,6 +93,7 @@ pub struct CodeCommitReference { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } diff --git a/lambda-events/src/event/codebuild/mod.rs b/lambda-events/src/event/codebuild/mod.rs index 8a80c5c6..d87484f9 100644 --- a/lambda-events/src/event/codebuild/mod.rs +++ b/lambda-events/src/event/codebuild/mod.rs @@ -48,6 +48,7 @@ pub struct CodeBuildEvent { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -94,6 +95,7 @@ pub struct CodeBuildEventDetail { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -125,6 +127,7 @@ pub struct CodeBuildEventAdditionalInformation { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -145,6 +148,7 @@ pub struct CodeBuildArtifact { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -168,6 +172,7 @@ pub struct CodeBuildEnvironment { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -189,6 +194,7 @@ pub struct CodeBuildEnvironmentVariable { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -205,6 +211,7 @@ pub struct CodeBuildSource { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -226,6 +233,7 @@ pub struct CodeBuildLogs { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -258,6 +266,7 @@ where /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } diff --git a/lambda-events/src/event/codedeploy/mod.rs b/lambda-events/src/event/codedeploy/mod.rs index 3e532ec2..e59c1666 100644 --- a/lambda-events/src/event/codedeploy/mod.rs +++ b/lambda-events/src/event/codedeploy/mod.rs @@ -44,6 +44,7 @@ pub struct CodeDeployEvent { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -75,6 +76,7 @@ pub struct CodeDeployEventDetail { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -88,6 +90,7 @@ pub struct CodeDeployLifecycleEvent { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } diff --git a/lambda-events/src/event/codepipeline_cloudwatch/mod.rs b/lambda-events/src/event/codepipeline_cloudwatch/mod.rs index 9077caa8..df0f8787 100644 --- a/lambda-events/src/event/codepipeline_cloudwatch/mod.rs +++ b/lambda-events/src/event/codepipeline_cloudwatch/mod.rs @@ -48,6 +48,7 @@ pub struct CodePipelineCloudWatchEvent { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -74,6 +75,7 @@ pub struct CodePipelineEventDetail { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -93,6 +95,7 @@ pub struct CodePipelineEventDetailType { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } diff --git a/lambda-events/src/event/codepipeline_job/mod.rs b/lambda-events/src/event/codepipeline_job/mod.rs index 3aa42b46..2d467bab 100644 --- a/lambda-events/src/event/codepipeline_job/mod.rs +++ b/lambda-events/src/event/codepipeline_job/mod.rs @@ -12,6 +12,7 @@ pub struct CodePipelineJobEvent { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -29,6 +30,7 @@ pub struct CodePipelineJob { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -48,6 +50,7 @@ pub struct CodePipelineData { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -61,6 +64,7 @@ pub struct CodePipelineActionConfiguration { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -79,6 +83,7 @@ pub struct CodePipelineConfiguration { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -95,6 +100,7 @@ pub struct CodePipelineInputArtifact { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -111,6 +117,7 @@ pub struct CodePipelineInputLocation { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -127,6 +134,7 @@ pub struct CodePipelineS3Location { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -143,6 +151,7 @@ pub struct CodePipelineOutputArtifact { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -159,6 +168,7 @@ pub struct CodePipelineOutputLocation { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -177,6 +187,7 @@ pub struct CodePipelineArtifactCredentials { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } diff --git a/lambda-events/src/event/cognito/mod.rs b/lambda-events/src/event/cognito/mod.rs index 36b1ccf2..e8106d5a 100644 --- a/lambda-events/src/event/cognito/mod.rs +++ b/lambda-events/src/event/cognito/mod.rs @@ -26,6 +26,7 @@ pub struct CognitoEvent { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -44,6 +45,7 @@ pub struct CognitoDatasetRecord { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -62,6 +64,7 @@ pub struct CognitoEventUserPoolsPreSignup { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -92,6 +95,7 @@ pub struct CognitoEventUserPoolsPreAuthentication { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -123,6 +127,7 @@ where /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -150,6 +155,7 @@ pub struct CognitoEventUserPoolsPreTokenGen { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -184,6 +190,7 @@ pub struct CognitoEventUserPoolsPostAuthentication { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -211,6 +218,7 @@ pub struct CognitoEventUserPoolsMigrateUser { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -237,6 +245,7 @@ pub struct CognitoEventUserPoolsCallerContext { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -278,6 +287,7 @@ pub struct CognitoEventUserPoolsPreSignupRequest { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -293,6 +303,7 @@ pub struct CognitoEventUserPoolsPreSignupResponse { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -311,6 +322,7 @@ pub struct CognitoEventUserPoolsPreAuthenticationRequest { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -322,6 +334,7 @@ pub struct CognitoEventUserPoolsPreAuthenticationResponse { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -339,6 +352,7 @@ pub struct CognitoEventUserPoolsPostConfirmationRequest { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -350,6 +364,7 @@ pub struct CognitoEventUserPoolsPostConfirmationResponse { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -369,6 +384,7 @@ pub struct CognitoEventUserPoolsPreTokenGenRequest { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -382,6 +398,7 @@ pub struct CognitoEventUserPoolsPreTokenGenResponse { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -400,6 +417,7 @@ pub struct CognitoEventUserPoolsPreTokenGenV2 { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -420,6 +438,7 @@ pub struct CognitoEventUserPoolsPreTokenGenRequestV2 { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -432,6 +451,7 @@ pub struct CognitoEventUserPoolsPreTokenGenResponseV2 { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -447,6 +467,7 @@ pub struct ClaimsAndScopeOverrideDetailsV2 { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -461,6 +482,7 @@ pub struct CognitoIdTokenGenerationV2 { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -477,6 +499,7 @@ pub struct CognitoAccessTokenGenerationV2 { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -496,6 +519,7 @@ pub struct CognitoEventUserPoolsPostAuthenticationRequest { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -507,6 +531,7 @@ pub struct CognitoEventUserPoolsPostAuthenticationResponse { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -526,6 +551,7 @@ pub struct CognitoEventUserPoolsMigrateUserRequest { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -549,6 +575,7 @@ pub struct CognitoEventUserPoolsMigrateUserResponse { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -566,6 +593,7 @@ pub struct ClaimsOverrideDetails { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -581,6 +609,7 @@ pub struct GroupConfiguration { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -599,6 +628,7 @@ pub struct CognitoEventUserPoolsChallengeResult { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -620,6 +650,7 @@ pub struct CognitoEventUserPoolsDefineAuthChallengeRequest { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -638,6 +669,7 @@ pub struct CognitoEventUserPoolsDefineAuthChallengeResponse { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -656,6 +688,7 @@ pub struct CognitoEventUserPoolsDefineAuthChallenge { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -686,6 +719,7 @@ pub struct CognitoEventUserPoolsCreateAuthChallengeRequest { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -706,6 +740,7 @@ pub struct CognitoEventUserPoolsCreateAuthChallengeResponse { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -724,6 +759,7 @@ pub struct CognitoEventUserPoolsCreateAuthChallenge { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -760,6 +796,7 @@ where /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -774,6 +811,7 @@ pub struct CognitoEventUserPoolsVerifyAuthChallengeResponse { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -793,6 +831,7 @@ pub struct CognitoEventUserPoolsVerifyAuthChallenge { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -818,6 +857,7 @@ pub struct CognitoEventUserPoolsCustomMessage { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -864,6 +904,7 @@ where /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -882,6 +923,7 @@ pub struct CognitoEventUserPoolsCustomMessageResponse { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } diff --git a/lambda-events/src/event/config/mod.rs b/lambda-events/src/event/config/mod.rs index a2d0e174..f072e3fa 100644 --- a/lambda-events/src/event/config/mod.rs +++ b/lambda-events/src/event/config/mod.rs @@ -40,6 +40,7 @@ pub struct ConfigEvent { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } diff --git a/lambda-events/src/event/connect/mod.rs b/lambda-events/src/event/connect/mod.rs index 5dca992d..b48e463c 100644 --- a/lambda-events/src/event/connect/mod.rs +++ b/lambda-events/src/event/connect/mod.rs @@ -19,6 +19,7 @@ pub struct ConnectEvent { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -38,6 +39,7 @@ pub struct ConnectDetails { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -80,6 +82,7 @@ pub struct ConnectContactData { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -98,6 +101,7 @@ pub struct ConnectEndpoint { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -116,6 +120,7 @@ pub struct ConnectQueue { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } diff --git a/lambda-events/src/event/documentdb/events/commom_types.rs b/lambda-events/src/event/documentdb/events/commom_types.rs index 69922b0a..fbc087a9 100644 --- a/lambda-events/src/event/documentdb/events/commom_types.rs +++ b/lambda-events/src/event/documentdb/events/commom_types.rs @@ -15,6 +15,7 @@ pub struct DatabaseCollection { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -27,6 +28,7 @@ pub struct DocumentId { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -39,6 +41,7 @@ pub struct DocumentKeyIdOid { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -51,6 +54,7 @@ pub struct DocumentKeyId { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -63,6 +67,7 @@ pub struct InnerTimestamp { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -75,6 +80,7 @@ pub struct Timestamp { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } diff --git a/lambda-events/src/event/documentdb/events/delete_event.rs b/lambda-events/src/event/documentdb/events/delete_event.rs index b444207a..0916ca32 100644 --- a/lambda-events/src/event/documentdb/events/delete_event.rs +++ b/lambda-events/src/event/documentdb/events/delete_event.rs @@ -23,6 +23,7 @@ pub struct ChangeDeleteEvent { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } diff --git a/lambda-events/src/event/documentdb/events/drop_database_event.rs b/lambda-events/src/event/documentdb/events/drop_database_event.rs index e055f616..7d3b11be 100644 --- a/lambda-events/src/event/documentdb/events/drop_database_event.rs +++ b/lambda-events/src/event/documentdb/events/drop_database_event.rs @@ -22,6 +22,7 @@ pub struct ChangeDropDatabaseEvent { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } diff --git a/lambda-events/src/event/documentdb/events/drop_event.rs b/lambda-events/src/event/documentdb/events/drop_event.rs index 5673e107..0583a789 100644 --- a/lambda-events/src/event/documentdb/events/drop_event.rs +++ b/lambda-events/src/event/documentdb/events/drop_event.rs @@ -21,6 +21,7 @@ pub struct ChangeDropEvent { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } diff --git a/lambda-events/src/event/documentdb/events/insert_event.rs b/lambda-events/src/event/documentdb/events/insert_event.rs index e070de5a..199bb566 100644 --- a/lambda-events/src/event/documentdb/events/insert_event.rs +++ b/lambda-events/src/event/documentdb/events/insert_event.rs @@ -23,6 +23,7 @@ pub struct ChangeInsertEvent { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } diff --git a/lambda-events/src/event/documentdb/events/invalidate_event.rs b/lambda-events/src/event/documentdb/events/invalidate_event.rs index 0b033ddd..b3fb7046 100644 --- a/lambda-events/src/event/documentdb/events/invalidate_event.rs +++ b/lambda-events/src/event/documentdb/events/invalidate_event.rs @@ -16,6 +16,7 @@ pub struct ChangeInvalidateEvent { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } diff --git a/lambda-events/src/event/documentdb/events/rename_event.rs b/lambda-events/src/event/documentdb/events/rename_event.rs index b2575296..d9f43032 100644 --- a/lambda-events/src/event/documentdb/events/rename_event.rs +++ b/lambda-events/src/event/documentdb/events/rename_event.rs @@ -24,6 +24,7 @@ pub struct ChangeRenameEvent { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } diff --git a/lambda-events/src/event/documentdb/events/replace_event.rs b/lambda-events/src/event/documentdb/events/replace_event.rs index 1f81c7fe..2cd214af 100644 --- a/lambda-events/src/event/documentdb/events/replace_event.rs +++ b/lambda-events/src/event/documentdb/events/replace_event.rs @@ -23,6 +23,7 @@ pub struct ChangeReplaceEvent { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } diff --git a/lambda-events/src/event/documentdb/events/update_event.rs b/lambda-events/src/event/documentdb/events/update_event.rs index 9bcf9254..85e83d62 100644 --- a/lambda-events/src/event/documentdb/events/update_event.rs +++ b/lambda-events/src/event/documentdb/events/update_event.rs @@ -13,6 +13,7 @@ pub struct UpdateTruncate { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -27,6 +28,7 @@ pub struct UpdateDescription { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -51,6 +53,7 @@ pub struct ChangeUpdateEvent { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } diff --git a/lambda-events/src/event/documentdb/mod.rs b/lambda-events/src/event/documentdb/mod.rs index ca5fd786..77378c79 100644 --- a/lambda-events/src/event/documentdb/mod.rs +++ b/lambda-events/src/event/documentdb/mod.rs @@ -29,6 +29,7 @@ pub struct DocumentDbInnerEvent { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -45,6 +46,7 @@ pub struct DocumentDbEvent { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } diff --git a/lambda-events/src/event/dynamodb/mod.rs b/lambda-events/src/event/dynamodb/mod.rs index bf67f864..c9011f29 100644 --- a/lambda-events/src/event/dynamodb/mod.rs +++ b/lambda-events/src/event/dynamodb/mod.rs @@ -121,6 +121,7 @@ pub struct Event { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -140,6 +141,7 @@ pub struct TimeWindowEvent { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -156,6 +158,7 @@ pub struct TimeWindowEventResponse { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -222,6 +225,7 @@ pub struct EventRecord { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -237,6 +241,7 @@ pub struct UserIdentity { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -284,6 +289,7 @@ pub struct StreamRecord { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } diff --git a/lambda-events/src/event/ecr_scan/mod.rs b/lambda-events/src/event/ecr_scan/mod.rs index afd7ac58..4e8f2375 100644 --- a/lambda-events/src/event/ecr_scan/mod.rs +++ b/lambda-events/src/event/ecr_scan/mod.rs @@ -26,6 +26,7 @@ pub struct EcrScanEvent { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -50,6 +51,7 @@ pub struct EcrScanEventDetailType { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -79,6 +81,7 @@ pub struct EcrScanEventFindingSeverityCounts { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } diff --git a/lambda-events/src/event/eventbridge/mod.rs b/lambda-events/src/event/eventbridge/mod.rs index 7bfe0fe7..1f245a11 100644 --- a/lambda-events/src/event/eventbridge/mod.rs +++ b/lambda-events/src/event/eventbridge/mod.rs @@ -34,6 +34,7 @@ where /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } diff --git a/lambda-events/src/event/firehose/mod.rs b/lambda-events/src/event/firehose/mod.rs index f385a4f2..92dbe38b 100644 --- a/lambda-events/src/event/firehose/mod.rs +++ b/lambda-events/src/event/firehose/mod.rs @@ -26,6 +26,7 @@ pub struct KinesisFirehoseEvent { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -43,6 +44,7 @@ pub struct KinesisFirehoseEventRecord { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -55,6 +57,7 @@ pub struct KinesisFirehoseResponse { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -73,6 +76,7 @@ pub struct KinesisFirehoseResponseRecord { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -87,6 +91,7 @@ pub struct KinesisFirehoseResponseRecordMetadata { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -106,6 +111,7 @@ pub struct KinesisFirehoseRecordMetadata { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } diff --git a/lambda-events/src/event/iam/mod.rs b/lambda-events/src/event/iam/mod.rs index 2c8fb57b..3ea3c3c5 100644 --- a/lambda-events/src/event/iam/mod.rs +++ b/lambda-events/src/event/iam/mod.rs @@ -18,6 +18,7 @@ pub struct IamPolicyDocument { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -39,6 +40,7 @@ pub struct IamPolicyStatement { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } diff --git a/lambda-events/src/event/iot/mod.rs b/lambda-events/src/event/iot/mod.rs index 398ca128..1bd79d3f 100644 --- a/lambda-events/src/event/iot/mod.rs +++ b/lambda-events/src/event/iot/mod.rs @@ -19,6 +19,7 @@ pub struct IoTCoreCustomAuthorizerRequest { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -33,6 +34,7 @@ pub struct IoTCoreProtocolData { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -46,6 +48,7 @@ pub struct IoTCoreTlsContext { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -62,6 +65,7 @@ pub struct IoTCoreHttpContext { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -78,6 +82,7 @@ pub struct IoTCoreMqttContext { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -91,6 +96,7 @@ pub struct IoTCoreConnectionMetadata { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -110,6 +116,7 @@ pub struct IoTCoreCustomAuthorizerResponse { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } diff --git a/lambda-events/src/event/iot_1_click/mod.rs b/lambda-events/src/event/iot_1_click/mod.rs index 191a39e1..61150694 100644 --- a/lambda-events/src/event/iot_1_click/mod.rs +++ b/lambda-events/src/event/iot_1_click/mod.rs @@ -17,6 +17,7 @@ pub struct IoTOneClickEvent { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -29,6 +30,7 @@ pub struct IoTOneClickDeviceEvent { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -44,6 +46,7 @@ pub struct IoTOneClickButtonClicked { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -63,6 +66,7 @@ pub struct IoTOneClickDeviceInfo { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -84,6 +88,7 @@ pub struct IoTOneClickPlacementInfo { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } diff --git a/lambda-events/src/event/iot_button/mod.rs b/lambda-events/src/event/iot_button/mod.rs index 3eee91c5..465431d4 100644 --- a/lambda-events/src/event/iot_button/mod.rs +++ b/lambda-events/src/event/iot_button/mod.rs @@ -15,6 +15,7 @@ pub struct IoTButtonEvent { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } diff --git a/lambda-events/src/event/iot_deprecated/mod.rs b/lambda-events/src/event/iot_deprecated/mod.rs index 1e93c154..52e6f9f8 100644 --- a/lambda-events/src/event/iot_deprecated/mod.rs +++ b/lambda-events/src/event/iot_deprecated/mod.rs @@ -20,6 +20,7 @@ pub struct IoTCustomAuthorizerRequest { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -45,6 +46,7 @@ pub struct IoTCustomAuthorizerResponse { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } diff --git a/lambda-events/src/event/kafka/mod.rs b/lambda-events/src/event/kafka/mod.rs index 216387ae..5b36871b 100644 --- a/lambda-events/src/event/kafka/mod.rs +++ b/lambda-events/src/event/kafka/mod.rs @@ -20,6 +20,7 @@ pub struct KafkaEvent { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -41,6 +42,7 @@ pub struct KafkaRecord { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } diff --git a/lambda-events/src/event/kinesis/analytics.rs b/lambda-events/src/event/kinesis/analytics.rs index b8c6ec6e..d4754667 100644 --- a/lambda-events/src/event/kinesis/analytics.rs +++ b/lambda-events/src/event/kinesis/analytics.rs @@ -15,6 +15,7 @@ pub struct KinesisAnalyticsOutputDeliveryEvent { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -29,6 +30,7 @@ pub struct KinesisAnalyticsOutputDeliveryEventRecord { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -41,6 +43,7 @@ pub struct KinesisAnalyticsOutputDeliveryResponse { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -57,6 +60,7 @@ pub struct KinesisAnalyticsOutputDeliveryResponseRecord { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } diff --git a/lambda-events/src/event/kinesis/event.rs b/lambda-events/src/event/kinesis/event.rs index 6f7124cd..02a9c402 100644 --- a/lambda-events/src/event/kinesis/event.rs +++ b/lambda-events/src/event/kinesis/event.rs @@ -15,6 +15,7 @@ pub struct KinesisEvent { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -34,6 +35,7 @@ pub struct KinesisTimeWindowEvent { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -50,6 +52,7 @@ pub struct KinesisTimeWindowEventResponse { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -81,6 +84,7 @@ pub struct KinesisEventRecord { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -102,6 +106,7 @@ pub struct KinesisRecord { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } diff --git a/lambda-events/src/event/lambda_function_urls/mod.rs b/lambda-events/src/event/lambda_function_urls/mod.rs index f9b56ba3..7a68b9de 100644 --- a/lambda-events/src/event/lambda_function_urls/mod.rs +++ b/lambda-events/src/event/lambda_function_urls/mod.rs @@ -31,6 +31,7 @@ pub struct LambdaFunctionUrlRequest { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -62,6 +63,7 @@ pub struct LambdaFunctionUrlRequestContext { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -75,6 +77,7 @@ pub struct LambdaFunctionUrlRequestContextAuthorizerDescription { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -97,6 +100,7 @@ pub struct LambdaFunctionUrlRequestContextAuthorizerIamDescription { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -119,6 +123,7 @@ pub struct LambdaFunctionUrlRequestContextHttpDescription { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -139,6 +144,7 @@ pub struct LambdaFunctionUrlResponse { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } diff --git a/lambda-events/src/event/lex/mod.rs b/lambda-events/src/event/lex/mod.rs index 0a19c788..6cc7dfb3 100644 --- a/lambda-events/src/event/lex/mod.rs +++ b/lambda-events/src/event/lex/mod.rs @@ -26,6 +26,7 @@ pub struct LexEvent { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -40,6 +41,7 @@ pub struct LexBot { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -58,6 +60,7 @@ pub struct LexCurrentIntent { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -76,6 +79,7 @@ pub struct LexAlternativeIntents { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -89,6 +93,7 @@ pub struct SlotDetail { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -109,6 +114,7 @@ pub struct LexDialogAction { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -126,6 +132,7 @@ pub struct LexResponse { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -140,6 +147,7 @@ pub struct LexResponseCard { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -156,6 +164,7 @@ pub struct Attachment { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } diff --git a/lambda-events/src/event/rabbitmq/mod.rs b/lambda-events/src/event/rabbitmq/mod.rs index f261b074..cdad792d 100644 --- a/lambda-events/src/event/rabbitmq/mod.rs +++ b/lambda-events/src/event/rabbitmq/mod.rs @@ -19,6 +19,7 @@ pub struct RabbitMqEvent { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -34,6 +35,7 @@ pub struct RabbitMqMessage { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -72,6 +74,7 @@ where /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } diff --git a/lambda-events/src/event/s3/batch_job.rs b/lambda-events/src/event/s3/batch_job.rs index 8db1fe7c..a253880f 100644 --- a/lambda-events/src/event/s3/batch_job.rs +++ b/lambda-events/src/event/s3/batch_job.rs @@ -16,6 +16,7 @@ pub struct S3BatchJobEvent { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -30,6 +31,7 @@ pub struct S3BatchJob { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -50,6 +52,7 @@ pub struct S3BatchJobTask { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -69,6 +72,7 @@ pub struct S3BatchJobResponse { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -87,6 +91,7 @@ pub struct S3BatchJobResult { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } diff --git a/lambda-events/src/event/s3/event.rs b/lambda-events/src/event/s3/event.rs index 35221345..6c61a426 100644 --- a/lambda-events/src/event/s3/event.rs +++ b/lambda-events/src/event/s3/event.rs @@ -16,6 +16,7 @@ pub struct S3Event { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -44,6 +45,7 @@ pub struct S3EventRecord { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -57,6 +59,7 @@ pub struct S3UserIdentity { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -71,6 +74,7 @@ pub struct S3RequestParameters { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -89,6 +93,7 @@ pub struct S3Entity { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -106,6 +111,7 @@ pub struct S3Bucket { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -128,6 +134,7 @@ pub struct S3Object { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } diff --git a/lambda-events/src/event/s3/object_lambda.rs b/lambda-events/src/event/s3/object_lambda.rs index 181bb0c6..ed28d9dd 100644 --- a/lambda-events/src/event/s3/object_lambda.rs +++ b/lambda-events/src/event/s3/object_lambda.rs @@ -28,6 +28,7 @@ where /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -44,6 +45,7 @@ pub struct GetObjectContext { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -58,6 +60,7 @@ pub struct HeadObjectContext { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -72,6 +75,7 @@ pub struct ListObjectsContext { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -86,6 +90,7 @@ pub struct ListObjectsV2Context { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -106,6 +111,7 @@ where /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -122,6 +128,7 @@ pub struct UserRequest { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -140,6 +147,7 @@ pub struct UserIdentity { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -154,6 +162,7 @@ pub struct SessionContext { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -170,6 +179,7 @@ pub struct SessionIssuer { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } diff --git a/lambda-events/src/event/secretsmanager/mod.rs b/lambda-events/src/event/secretsmanager/mod.rs index b8734628..8d3f8f91 100644 --- a/lambda-events/src/event/secretsmanager/mod.rs +++ b/lambda-events/src/event/secretsmanager/mod.rs @@ -12,6 +12,7 @@ pub struct SecretsManagerSecretRotationEvent { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } diff --git a/lambda-events/src/event/ses/mod.rs b/lambda-events/src/event/ses/mod.rs index a8ea90d1..424071eb 100644 --- a/lambda-events/src/event/ses/mod.rs +++ b/lambda-events/src/event/ses/mod.rs @@ -13,6 +13,7 @@ pub struct SimpleEmailEvent { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -29,6 +30,7 @@ pub struct SimpleEmailRecord { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -43,6 +45,7 @@ pub struct SimpleEmailService { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -63,6 +66,7 @@ pub struct SimpleEmailMessage { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -85,6 +89,7 @@ pub struct SimpleEmailReceipt { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -100,6 +105,7 @@ pub struct SimpleEmailHeader { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -121,6 +127,7 @@ pub struct SimpleEmailCommonHeaders { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -148,6 +155,7 @@ pub struct SimpleEmailReceiptAction { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -161,6 +169,7 @@ pub struct SimpleEmailVerdict { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -176,6 +185,7 @@ pub struct SimpleEmailDisposition { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } diff --git a/lambda-events/src/event/sns/mod.rs b/lambda-events/src/event/sns/mod.rs index 89eee686..dfc296d5 100644 --- a/lambda-events/src/event/sns/mod.rs +++ b/lambda-events/src/event/sns/mod.rs @@ -18,6 +18,7 @@ pub struct SnsEvent { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -42,6 +43,7 @@ pub struct SnsRecord { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -97,6 +99,7 @@ pub struct SnsMessage { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -114,6 +117,7 @@ pub struct SnsEventObj { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -139,6 +143,7 @@ pub struct SnsRecordObj { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -198,6 +203,7 @@ pub struct SnsMessageObj { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -221,6 +227,7 @@ pub struct MessageAttribute { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -243,6 +250,7 @@ pub struct CloudWatchAlarmPayload { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -269,6 +277,7 @@ pub struct CloudWatchAlarmTrigger { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -287,6 +296,7 @@ pub struct CloudWatchMetricDataQuery { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -302,6 +312,7 @@ pub struct CloudWatchMetricStat { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -317,6 +328,7 @@ pub struct CloudWatchMetric { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -329,6 +341,7 @@ pub struct CloudWatchDimension { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } diff --git a/lambda-events/src/event/sqs/mod.rs b/lambda-events/src/event/sqs/mod.rs index 81016fc4..cb9be785 100644 --- a/lambda-events/src/event/sqs/mod.rs +++ b/lambda-events/src/event/sqs/mod.rs @@ -14,6 +14,7 @@ pub struct SqsEvent { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -50,6 +51,7 @@ pub struct SqsMessage { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -66,6 +68,7 @@ pub struct SqsEventObj { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -107,6 +110,7 @@ pub struct SqsMessageObj { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -126,6 +130,7 @@ pub struct SqsMessageAttribute { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -138,6 +143,7 @@ pub struct SqsBatchResponse { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -150,6 +156,7 @@ pub struct BatchItemFailure { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -165,6 +172,7 @@ pub struct SqsApiEventObj { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -178,6 +186,7 @@ pub struct SqsApiEvent { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -213,6 +222,7 @@ pub struct SqsApiMessageObj { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -242,6 +252,7 @@ pub struct SqsApiMessage { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } diff --git a/lambda-events/src/event/streams/mod.rs b/lambda-events/src/event/streams/mod.rs index 58347a2f..28d5b34a 100644 --- a/lambda-events/src/event/streams/mod.rs +++ b/lambda-events/src/event/streams/mod.rs @@ -11,6 +11,7 @@ pub struct KinesisEventResponse { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -25,6 +26,7 @@ pub struct KinesisBatchItemFailure { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -38,6 +40,7 @@ pub struct DynamoDbEventResponse { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -52,6 +55,7 @@ pub struct DynamoDbBatchItemFailure { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -65,6 +69,7 @@ pub struct SqsEventResponse { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } @@ -79,6 +84,7 @@ pub struct SqsBatchItemFailure { /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] + #[cfg_attr(docsrs, doc(cfg(feature = "catch-all-fields")))] #[serde(flatten)] pub other: serde_json::Map, } From 0ad832ecc913114f06663af7b469c7285ae2712c Mon Sep 17 00:00:00 2001 From: Craig Disselkoen Date: Thu, 17 Jul 2025 11:24:08 -0400 Subject: [PATCH 4/5] bump lambda_events version to 0.17 Signed-off-by: Craig Disselkoen --- lambda-events/Cargo.toml | 2 +- lambda-http/Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lambda-events/Cargo.toml b/lambda-events/Cargo.toml index d74c8e34..cd2d86f2 100644 --- a/lambda-events/Cargo.toml +++ b/lambda-events/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "aws_lambda_events" -version = "0.16.1" +version = "0.17.0" rust-version = "1.81.0" description = "AWS Lambda event definitions" authors = [ diff --git a/lambda-http/Cargo.toml b/lambda-http/Cargo.toml index a91880ba..6788f285 100644 --- a/lambda-http/Cargo.toml +++ b/lambda-http/Cargo.toml @@ -50,7 +50,7 @@ url = "2.2" [dependencies.aws_lambda_events] path = "../lambda-events" -version = "0.16.0" +version = "0.17.0" default-features = false features = ["alb", "apigw"] From 72d5d4699db7e22e72f77997d04659922388ea4c Mon Sep 17 00:00:00 2001 From: Craig Disselkoen Date: Thu, 17 Jul 2025 11:27:09 -0400 Subject: [PATCH 5/5] tweak comment wording Signed-off-by: Craig Disselkoen --- lambda-events/src/event/activemq/mod.rs | 6 +- lambda-events/src/event/alb/mod.rs | 8 +- lambda-events/src/event/apigw/mod.rs | 62 +++++++------- lambda-events/src/event/appsync/mod.rs | 24 +++--- lambda-events/src/event/autoscaling/mod.rs | 2 +- .../src/event/bedrock_agent_runtime/mod.rs | 12 +-- lambda-events/src/event/chime_bot/mod.rs | 8 +- lambda-events/src/event/clientvpn/mod.rs | 4 +- lambda-events/src/event/cloudformation/mod.rs | 8 +- .../src/event/cloudformation/provider.rs | 4 +- .../src/event/cloudwatch_alarms/mod.rs | 26 +++--- .../src/event/cloudwatch_events/cloudtrail.rs | 14 ++-- .../src/event/cloudwatch_events/codedeploy.rs | 6 +- .../event/cloudwatch_events/codepipeline.rs | 8 +- .../src/event/cloudwatch_events/ec2.rs | 2 +- .../src/event/cloudwatch_events/emr.rs | 8 +- .../src/event/cloudwatch_events/gamelift.rs | 24 +++--- .../src/event/cloudwatch_events/glue.rs | 16 ++-- .../src/event/cloudwatch_events/health.rs | 6 +- .../src/event/cloudwatch_events/kms.rs | 2 +- .../src/event/cloudwatch_events/macie.rs | 36 ++++---- .../src/event/cloudwatch_events/mod.rs | 2 +- .../src/event/cloudwatch_events/opsworks.rs | 8 +- .../src/event/cloudwatch_events/signin.rs | 8 +- .../src/event/cloudwatch_events/sms.rs | 2 +- .../src/event/cloudwatch_events/ssm.rs | 28 +++---- .../src/event/cloudwatch_events/tag.rs | 2 +- .../event/cloudwatch_events/trustedadvisor.rs | 2 +- .../src/event/cloudwatch_logs/mod.rs | 6 +- lambda-events/src/event/code_commit/mod.rs | 10 +-- lambda-events/src/event/codebuild/mod.rs | 18 ++-- lambda-events/src/event/codedeploy/mod.rs | 6 +- .../src/event/codepipeline_cloudwatch/mod.rs | 6 +- .../src/event/codepipeline_job/mod.rs | 22 ++--- lambda-events/src/event/cognito/mod.rs | 84 +++++++++---------- lambda-events/src/event/config/mod.rs | 2 +- lambda-events/src/event/connect/mod.rs | 10 +-- .../event/documentdb/events/commom_types.rs | 12 +-- .../event/documentdb/events/delete_event.rs | 2 +- .../documentdb/events/drop_database_event.rs | 2 +- .../src/event/documentdb/events/drop_event.rs | 2 +- .../event/documentdb/events/insert_event.rs | 2 +- .../documentdb/events/invalidate_event.rs | 2 +- .../event/documentdb/events/rename_event.rs | 2 +- .../event/documentdb/events/replace_event.rs | 2 +- .../event/documentdb/events/update_event.rs | 6 +- lambda-events/src/event/documentdb/mod.rs | 4 +- lambda-events/src/event/dynamodb/mod.rs | 12 +-- lambda-events/src/event/ecr_scan/mod.rs | 6 +- lambda-events/src/event/eventbridge/mod.rs | 2 +- lambda-events/src/event/firehose/mod.rs | 12 +-- lambda-events/src/event/iam/mod.rs | 4 +- lambda-events/src/event/iot/mod.rs | 14 ++-- lambda-events/src/event/iot_1_click/mod.rs | 10 +-- lambda-events/src/event/iot_button/mod.rs | 2 +- lambda-events/src/event/iot_deprecated/mod.rs | 4 +- lambda-events/src/event/kafka/mod.rs | 4 +- lambda-events/src/event/kinesis/analytics.rs | 8 +- lambda-events/src/event/kinesis/event.rs | 10 +-- .../src/event/lambda_function_urls/mod.rs | 12 +-- lambda-events/src/event/lex/mod.rs | 18 ++-- lambda-events/src/event/rabbitmq/mod.rs | 6 +- lambda-events/src/event/s3/batch_job.rs | 10 +-- lambda-events/src/event/s3/event.rs | 14 ++-- lambda-events/src/event/s3/object_lambda.rs | 20 ++--- lambda-events/src/event/secretsmanager/mod.rs | 2 +- lambda-events/src/event/ses/mod.rs | 20 ++--- lambda-events/src/event/sns/mod.rs | 26 +++--- lambda-events/src/event/sqs/mod.rs | 22 ++--- lambda-events/src/event/streams/mod.rs | 12 +-- 70 files changed, 394 insertions(+), 394 deletions(-) diff --git a/lambda-events/src/event/activemq/mod.rs b/lambda-events/src/event/activemq/mod.rs index c6f33bb3..d9283bea 100644 --- a/lambda-events/src/event/activemq/mod.rs +++ b/lambda-events/src/event/activemq/mod.rs @@ -13,7 +13,7 @@ pub struct ActiveMqEvent { #[serde(default)] pub event_source_arn: Option, pub messages: Vec, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -50,7 +50,7 @@ pub struct ActiveMqMessage { #[serde(deserialize_with = "deserialize_lambda_map")] #[serde(default)] pub properties: HashMap, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -64,7 +64,7 @@ pub struct ActiveMqMessage { pub struct ActiveMqDestination { #[serde(default)] pub physical_name: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] diff --git a/lambda-events/src/event/alb/mod.rs b/lambda-events/src/event/alb/mod.rs index 77ac2c33..55e427e2 100644 --- a/lambda-events/src/event/alb/mod.rs +++ b/lambda-events/src/event/alb/mod.rs @@ -32,7 +32,7 @@ pub struct AlbTargetGroupRequest { #[serde(default, deserialize_with = "deserialize_nullish_boolean")] pub is_base64_encoded: bool, pub body: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -46,7 +46,7 @@ pub struct AlbTargetGroupRequest { #[serde(rename_all = "camelCase")] pub struct AlbTargetGroupRequestContext { pub elb: ElbContext, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -62,7 +62,7 @@ pub struct ElbContext { /// nolint: stylecheck #[serde(default)] pub target_group_arn: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -88,7 +88,7 @@ pub struct AlbTargetGroupResponse { pub body: Option, #[serde(default, deserialize_with = "deserialize_nullish_boolean")] pub is_base64_encoded: bool, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] diff --git a/lambda-events/src/event/apigw/mod.rs b/lambda-events/src/event/apigw/mod.rs index 1caf37b2..c7a6175b 100644 --- a/lambda-events/src/event/apigw/mod.rs +++ b/lambda-events/src/event/apigw/mod.rs @@ -47,7 +47,7 @@ pub struct ApiGatewayProxyRequest { pub body: Option, #[serde(default, deserialize_with = "deserialize_nullish_boolean")] pub is_base64_encoded: bool, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -71,7 +71,7 @@ pub struct ApiGatewayProxyResponse { pub body: Option, #[serde(default, deserialize_with = "deserialize_nullish_boolean")] pub is_base64_encoded: bool, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -124,7 +124,7 @@ pub struct ApiGatewayProxyRequestContext { #[serde(default)] #[serde(rename = "apiId")] pub apiid: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -181,7 +181,7 @@ pub struct ApiGatewayV2httpRequest { pub body: Option, #[serde(default)] pub is_base64_encoded: bool, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -220,7 +220,7 @@ pub struct ApiGatewayV2httpRequestContext { pub http: ApiGatewayV2httpRequestContextHttpDescription, #[serde(skip_serializing_if = "Option::is_none")] pub authentication: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -244,7 +244,7 @@ pub struct ApiGatewayRequestAuthorizer { pub fields: HashMap, #[serde(skip_serializing_if = "Option::is_none")] pub iam: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -262,7 +262,7 @@ pub struct ApiGatewayRequestAuthorizerJwtDescription { pub claims: HashMap, #[serde(skip_serializing_if = "Option::is_none")] pub scopes: Option>, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -289,7 +289,7 @@ pub struct ApiGatewayRequestAuthorizerIamDescription { pub user_arn: Option, #[serde(default)] pub user_id: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -307,7 +307,7 @@ pub struct ApiGatewayRequestAuthorizerCognitoIdentity { pub identity_id: Option, #[serde(default)] pub identity_pool_id: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -330,7 +330,7 @@ pub struct ApiGatewayV2httpRequestContextHttpDescription { pub source_ip: Option, #[serde(default)] pub user_agent: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -355,7 +355,7 @@ pub struct ApiGatewayV2httpResponse { #[serde(default, deserialize_with = "deserialize_nullish_boolean")] pub is_base64_encoded: bool, pub cookies: Vec, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -395,7 +395,7 @@ pub struct ApiGatewayRequestIdentity { pub user_agent: Option, #[serde(default)] pub user: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -441,7 +441,7 @@ pub struct ApiGatewayWebsocketProxyRequest { pub body: Option, #[serde(default, deserialize_with = "deserialize_nullish_boolean")] pub is_base64_encoded: bool, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -512,7 +512,7 @@ pub struct ApiGatewayWebsocketProxyRequestContext { pub disconnect_status_code: Option, #[serde(default)] pub disconnect_reason: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -533,7 +533,7 @@ pub struct ApiGatewayCustomAuthorizerRequestTypeRequestIdentity { pub source_ip: Option, #[serde(default)] pub client_cert: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -557,7 +557,7 @@ pub struct ApiGatewayCustomAuthorizerRequestTypeRequestIdentityClientCert { #[serde(rename = "subjectDN")] pub subject_dn: Option, pub validity: ApiGatewayCustomAuthorizerRequestTypeRequestIdentityClientCertValidity, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -574,7 +574,7 @@ pub struct ApiGatewayCustomAuthorizerRequestTypeRequestIdentityClientCertValidit pub not_after: Option, #[serde(default)] pub not_before: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -589,7 +589,7 @@ pub struct ApiGatewayCustomAuthorizerRequestTypeRequestIdentityClientCertValidit pub struct ApiGatewayV2httpRequestContextAuthentication { #[serde(default)] pub client_cert: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -613,7 +613,7 @@ pub struct ApiGatewayV2httpRequestContextAuthenticationClientCert { #[serde(rename = "subjectDN")] pub subject_dn: Option, pub validity: ApiGatewayV2httpRequestContextAuthenticationClientCertValidity, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -630,7 +630,7 @@ pub struct ApiGatewayV2httpRequestContextAuthenticationClientCertValidity { pub not_after: Option, #[serde(default)] pub not_before: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -660,7 +660,7 @@ pub struct ApiGatewayV2CustomAuthorizerV1RequestTypeRequestContext { #[serde(default)] #[serde(rename = "apiId")] pub apiid: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -702,7 +702,7 @@ pub struct ApiGatewayV2CustomAuthorizerV1Request { #[serde(default)] pub stage_variables: HashMap, pub request_context: ApiGatewayV2CustomAuthorizerV1RequestTypeRequestContext, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -744,7 +744,7 @@ pub struct ApiGatewayV2CustomAuthorizerV2Request { #[serde(deserialize_with = "deserialize_lambda_map")] #[serde(default)] pub stage_variables: HashMap, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -763,7 +763,7 @@ pub struct ApiGatewayCustomAuthorizerContext { pub num_key: Option, #[serde(default, deserialize_with = "deserialize_nullish_boolean")] pub bool_key: bool, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -798,7 +798,7 @@ pub struct ApiGatewayCustomAuthorizerRequestTypeRequestContext { #[serde(default)] #[serde(rename = "apiId")] pub apiid: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -818,7 +818,7 @@ pub struct ApiGatewayCustomAuthorizerRequest { /// nolint: stylecheck #[serde(default)] pub method_arn: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -862,7 +862,7 @@ pub struct ApiGatewayCustomAuthorizerRequestTypeRequest { #[serde(default)] pub stage_variables: HashMap, pub request_context: ApiGatewayCustomAuthorizerRequestTypeRequestContext, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -885,7 +885,7 @@ where #[serde(bound = "", default)] pub context: T1, pub usage_identifier_key: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -905,7 +905,7 @@ where pub is_authorized: bool, #[serde(bound = "", default)] pub context: T1, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -926,7 +926,7 @@ where pub policy_document: ApiGatewayCustomAuthorizerPolicy, #[serde(bound = "", default)] pub context: T1, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -942,7 +942,7 @@ pub struct ApiGatewayCustomAuthorizerPolicy { #[serde(default)] pub version: Option, pub statement: Vec, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] diff --git a/lambda-events/src/event/appsync/mod.rs b/lambda-events/src/event/appsync/mod.rs index c14f5734..ed68915e 100644 --- a/lambda-events/src/event/appsync/mod.rs +++ b/lambda-events/src/event/appsync/mod.rs @@ -17,7 +17,7 @@ where pub operation: AppSyncOperation, #[serde(bound = "")] pub payload: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -45,7 +45,7 @@ pub struct AppSyncIamIdentity { pub username: Option, #[serde(default)] pub user_arn: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -75,7 +75,7 @@ where pub source_ip: Vec, #[serde(default)] pub default_auth_strategy: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -93,7 +93,7 @@ pub struct AppSyncLambdaAuthorizerRequest { #[serde(default)] pub authorization_token: Option, pub request_context: AppSyncLambdaAuthorizerRequestContext, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -126,7 +126,7 @@ where #[serde(default)] #[serde(bound = "")] pub variables: HashMap, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -150,7 +150,7 @@ where pub resolver_context: HashMap, pub denied_fields: Option>, pub ttl_override: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -189,7 +189,7 @@ where pub prev: Option, #[serde(bound = "")] pub stash: TStash, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -209,7 +209,7 @@ pub struct AppSyncRequest { pub headers: HashMap>, #[serde(default)] pub domain_name: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -233,7 +233,7 @@ where pub field_name: String, #[serde(bound = "")] pub variables: T, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -250,7 +250,7 @@ where { #[serde(bound = "")] pub result: T, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -280,7 +280,7 @@ where pub claims: T, pub issuer: String, pub sub: String, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -298,7 +298,7 @@ where { #[serde(bound = "")] pub resolver_context: T, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] diff --git a/lambda-events/src/event/autoscaling/mod.rs b/lambda-events/src/event/autoscaling/mod.rs index 29ff8a21..1aeea5a2 100644 --- a/lambda-events/src/event/autoscaling/mod.rs +++ b/lambda-events/src/event/autoscaling/mod.rs @@ -41,7 +41,7 @@ where #[serde(default)] #[serde(bound = "")] pub detail: HashMap, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] diff --git a/lambda-events/src/event/bedrock_agent_runtime/mod.rs b/lambda-events/src/event/bedrock_agent_runtime/mod.rs index baa6ec41..e7b4e69c 100644 --- a/lambda-events/src/event/bedrock_agent_runtime/mod.rs +++ b/lambda-events/src/event/bedrock_agent_runtime/mod.rs @@ -31,7 +31,7 @@ pub struct AgentEvent { pub session_attributes: HashMap, /// Contains prompt attributes and their values. pub prompt_session_attributes: HashMap, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -45,7 +45,7 @@ pub struct AgentEvent { pub struct RequestBody { /// Contains the request body and its properties pub content: HashMap, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -59,7 +59,7 @@ pub struct RequestBody { pub struct Content { /// The content of the request body pub properties: Vec, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -77,7 +77,7 @@ pub struct Property { pub r#type: String, /// The value of the parameter pub value: String, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -95,7 +95,7 @@ pub struct Parameter { pub r#type: String, /// The value of the parameter pub value: String, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -115,7 +115,7 @@ pub struct Agent { pub alias: String, /// The version of the agent. pub version: String, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] diff --git a/lambda-events/src/event/chime_bot/mod.rs b/lambda-events/src/event/chime_bot/mod.rs index c708fb68..d4bcd5f6 100644 --- a/lambda-events/src/event/chime_bot/mod.rs +++ b/lambda-events/src/event/chime_bot/mod.rs @@ -19,7 +19,7 @@ pub struct ChimeBotEvent { pub event_timestamp: DateTime, #[serde(rename = "Message")] pub message: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -37,7 +37,7 @@ pub struct ChimeBotEventSender { #[serde(default)] #[serde(rename = "SenderIdType")] pub sender_id_type: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -55,7 +55,7 @@ pub struct ChimeBotEventDiscussion { #[serde(default)] #[serde(rename = "DiscussionType")] pub discussion_type: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -73,7 +73,7 @@ pub struct ChimeBotEventInboundHttpsEndpoint { #[serde(default)] #[serde(rename = "Url")] pub url: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] diff --git a/lambda-events/src/event/clientvpn/mod.rs b/lambda-events/src/event/clientvpn/mod.rs index 63b555f9..e99d7c8c 100644 --- a/lambda-events/src/event/clientvpn/mod.rs +++ b/lambda-events/src/event/clientvpn/mod.rs @@ -31,7 +31,7 @@ pub struct ClientVpnConnectionHandlerRequest { #[serde(default)] #[serde(rename = "schema-version")] pub schema_version: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -52,7 +52,7 @@ pub struct ClientVpnConnectionHandlerResponse { #[serde(default)] #[serde(rename = "schema-version")] pub schema_version: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] diff --git a/lambda-events/src/event/cloudformation/mod.rs b/lambda-events/src/event/cloudformation/mod.rs index 0236a1f2..4134c144 100644 --- a/lambda-events/src/event/cloudformation/mod.rs +++ b/lambda-events/src/event/cloudformation/mod.rs @@ -35,7 +35,7 @@ where pub logical_resource_id: String, #[serde(bound = "")] pub resource_properties: P2, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -64,7 +64,7 @@ where pub resource_properties: P2, #[serde(bound = "")] pub old_resource_properties: P1, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -90,7 +90,7 @@ where pub physical_resource_id: String, #[serde(bound = "")] pub resource_properties: P2, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -110,7 +110,7 @@ pub struct CloudFormationCustomResourceResponse { pub logical_resource_id: String, pub no_echo: bool, pub data: HashMap, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] diff --git a/lambda-events/src/event/cloudformation/provider.rs b/lambda-events/src/event/cloudformation/provider.rs index e0fffadf..786d6075 100644 --- a/lambda-events/src/event/cloudformation/provider.rs +++ b/lambda-events/src/event/cloudformation/provider.rs @@ -75,7 +75,7 @@ where pub resource_type: String, pub request_id: String, pub stack_id: String, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -94,7 +94,7 @@ where #[serde(bound = "")] pub data: D, pub no_echo: bool, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] diff --git a/lambda-events/src/event/cloudwatch_alarms/mod.rs b/lambda-events/src/event/cloudwatch_alarms/mod.rs index 3c41653c..c3efebe3 100644 --- a/lambda-events/src/event/cloudwatch_alarms/mod.rs +++ b/lambda-events/src/event/cloudwatch_alarms/mod.rs @@ -33,7 +33,7 @@ where #[serde(default, bound = "")] pub alarm_data: CloudWatchAlarmData, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -66,7 +66,7 @@ where pub previous_state: Option>, #[serde(bound = "")] pub configuration: C, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -90,7 +90,7 @@ where pub timestamp: DateTime, pub actions_suppressed_by: Option, pub actions_suppressed_reason: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -106,7 +106,7 @@ pub struct CloudWatchMetricAlarmConfiguration { pub description: Option, #[serde(default)] pub metrics: Vec, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -122,7 +122,7 @@ pub struct CloudWatchMetricDefinition { #[serde(default)] pub return_data: bool, pub metric_stat: CloudWatchMetricStatDefinition, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -140,7 +140,7 @@ pub struct CloudWatchMetricStatDefinition { pub stat: Option, pub period: u16, pub metric: CloudWatchMetricStatMetricDefinition, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -156,7 +156,7 @@ pub struct CloudWatchMetricStatMetricDefinition { pub namespace: Option, pub name: String, pub dimensions: HashMap, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -172,7 +172,7 @@ pub struct CloudWatchCompositeAlarmConfiguration { pub actions_suppressor: String, pub actions_suppressor_wait_period: u16, pub actions_suppressor_extension_period: u16, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -225,7 +225,7 @@ pub struct CloudWatchAlarmStateReasonDataMetric { pub threshold: f64, #[serde(default)] pub evaluated_datapoints: Vec, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -244,7 +244,7 @@ pub struct CloudWatchAlarmStateEvaluatedDatapoint { pub value: Option, #[serde(default)] pub threshold: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -258,7 +258,7 @@ pub struct CloudWatchAlarmStateEvaluatedDatapoint { pub struct ClodWatchAlarmStateReasonDataComposite { #[serde(default)] pub triggering_alarms: Vec, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -272,7 +272,7 @@ pub struct ClodWatchAlarmStateReasonDataComposite { pub struct CloudWatchAlarmStateTriggeringAlarm { pub arn: String, pub state: CloudWatchAlarmStateTriggeringAlarmState, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -287,7 +287,7 @@ pub struct CloudWatchAlarmStateTriggeringAlarmState { pub timestamp: DateTime, #[serde(default)] pub value: CloudWatchAlarmStateValue, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] diff --git a/lambda-events/src/event/cloudwatch_events/cloudtrail.rs b/lambda-events/src/event/cloudwatch_events/cloudtrail.rs index 81060b44..08b7500a 100644 --- a/lambda-events/src/event/cloudwatch_events/cloudtrail.rs +++ b/lambda-events/src/event/cloudwatch_events/cloudtrail.rs @@ -23,7 +23,7 @@ pub struct AWSAPICall { #[serde(rename = "eventID")] pub event_id: String, pub event_type: String, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -40,7 +40,7 @@ pub struct SessionIssuer { pub principal_id: String, pub arn: String, pub account_id: String, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -54,7 +54,7 @@ pub struct SessionIssuer { pub struct WebIdFederationData { pub federated_provider: Option, pub attributes: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -68,7 +68,7 @@ pub struct WebIdFederationData { pub struct Attributes { pub mfa_authenticated: String, pub creation_date: DateTime, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -85,7 +85,7 @@ pub struct SessionContext { pub attributes: Attributes, pub source_identity: Option, pub ec2_role_delivery: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -99,7 +99,7 @@ pub struct SessionContext { pub struct OnBehalfOf { pub user_id: String, pub identity_store_arn: String, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -121,7 +121,7 @@ pub struct UserIdentity { pub session_context: Option, pub user_name: Option, pub on_behalf_of: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] diff --git a/lambda-events/src/event/cloudwatch_events/codedeploy.rs b/lambda-events/src/event/cloudwatch_events/codedeploy.rs index 9be0fa50..b52528ca 100644 --- a/lambda-events/src/event/cloudwatch_events/codedeploy.rs +++ b/lambda-events/src/event/cloudwatch_events/codedeploy.rs @@ -11,7 +11,7 @@ pub struct StateChangeNotification { pub deployment_id: String, pub state: String, pub deployment_group: String, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -30,7 +30,7 @@ pub struct DeploymentStateChangeNotification { pub deployment_id: String, pub instance_group_id: String, pub deployment_group: String, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -47,7 +47,7 @@ pub struct InstanceStateChangeNotification { pub state: String, #[serde(rename = "execution-id")] pub execution_id: String, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] diff --git a/lambda-events/src/event/cloudwatch_events/codepipeline.rs b/lambda-events/src/event/cloudwatch_events/codepipeline.rs index 0c25c09c..e99798e7 100644 --- a/lambda-events/src/event/cloudwatch_events/codepipeline.rs +++ b/lambda-events/src/event/cloudwatch_events/codepipeline.rs @@ -10,7 +10,7 @@ pub struct PipelineExecutionStateChange { pub state: String, #[serde(rename = "execution-id")] pub execution_id: String, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -28,7 +28,7 @@ pub struct StageExecutionStateChange { pub execution_id: String, pub stage: String, pub state: String, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -50,7 +50,7 @@ pub struct ActionExecutionStateChange { pub region: String, #[serde(rename = "type")] pub type_field: ActionExecutionStateChangeType, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -66,7 +66,7 @@ pub struct ActionExecutionStateChangeType { pub category: String, pub provider: String, pub version: i64, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] diff --git a/lambda-events/src/event/cloudwatch_events/ec2.rs b/lambda-events/src/event/cloudwatch_events/ec2.rs index ed0cb590..c77fab4f 100644 --- a/lambda-events/src/event/cloudwatch_events/ec2.rs +++ b/lambda-events/src/event/cloudwatch_events/ec2.rs @@ -8,7 +8,7 @@ pub struct InstanceStateChange { #[serde(rename = "instance-id")] pub instance_id: String, pub state: String, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] diff --git a/lambda-events/src/event/cloudwatch_events/emr.rs b/lambda-events/src/event/cloudwatch_events/emr.rs index 9253b962..4aed4818 100644 --- a/lambda-events/src/event/cloudwatch_events/emr.rs +++ b/lambda-events/src/event/cloudwatch_events/emr.rs @@ -10,7 +10,7 @@ pub struct AutoScalingPolicyStateChange { pub state: String, pub message: String, pub scaling_resource_type: String, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -28,7 +28,7 @@ pub struct ClusterStateChange { pub cluster_id: String, pub state: String, pub message: String, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -50,7 +50,7 @@ pub struct InstanceGroupStateChange { pub running_instance_count: String, pub state: String, pub message: String, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -69,7 +69,7 @@ pub struct StepStatusChange { pub cluster_id: String, pub state: String, pub message: String, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] diff --git a/lambda-events/src/event/cloudwatch_events/gamelift.rs b/lambda-events/src/event/cloudwatch_events/gamelift.rs index 98c2aee0..009f1056 100644 --- a/lambda-events/src/event/cloudwatch_events/gamelift.rs +++ b/lambda-events/src/event/cloudwatch_events/gamelift.rs @@ -11,7 +11,7 @@ pub struct MatchmakingSearching { pub estimated_wait_millis: String, pub r#type: String, pub game_session_info: GameSessionInfo, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -26,7 +26,7 @@ pub struct Ticket { pub ticket_id: String, pub start_time: String, pub players: Vec, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -43,7 +43,7 @@ pub struct Player { #[serde(default, deserialize_with = "deserialize_nullish_boolean")] pub accepted: bool, pub player_session_id: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -56,7 +56,7 @@ pub struct Player { #[serde(rename_all = "camelCase")] pub struct GameSessionInfo { pub players: Vec, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -75,7 +75,7 @@ pub struct PotentialMatchCreated { pub r#type: String, pub game_session_info: GameSessionInfo, pub match_id: String, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -90,7 +90,7 @@ pub struct RuleEvaluationMetric { pub rule_name: String, pub passed_count: i64, pub failed_count: i64, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -106,7 +106,7 @@ pub struct AcceptMatch { pub r#type: String, pub game_session_info: GameSessionInfo, pub match_id: String, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -123,7 +123,7 @@ pub struct AcceptMatchCompleted { pub r#type: String, pub game_session_info: GameSessionInfo, pub match_id: String, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -139,7 +139,7 @@ pub struct MatchmakingSucceeded { pub r#type: String, pub game_session_info: GameSessionInfo, pub match_id: String, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -157,7 +157,7 @@ pub struct MatchmakingTimedOut { pub r#type: String, pub message: String, pub game_session_info: GameSessionInfo, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -175,7 +175,7 @@ pub struct MatchmakingCancelled { pub r#type: String, pub message: String, pub game_session_info: GameSessionInfo, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -194,7 +194,7 @@ pub struct MatchmakingFailed { pub message: String, pub game_session_info: GameSessionInfo, pub match_id: String, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] diff --git a/lambda-events/src/event/cloudwatch_events/glue.rs b/lambda-events/src/event/cloudwatch_events/glue.rs index 9aa4479e..21669098 100644 --- a/lambda-events/src/event/cloudwatch_events/glue.rs +++ b/lambda-events/src/event/cloudwatch_events/glue.rs @@ -10,7 +10,7 @@ pub struct JobRunStateChange { pub state: String, pub job_run_id: String, pub message: String, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -27,7 +27,7 @@ pub struct CrawlerStarted { pub start_time: String, pub state: String, pub message: String, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -54,7 +54,7 @@ pub struct CrawlerSucceeded { pub state: String, pub partitions_created: String, pub cloud_watch_log_link: String, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -72,7 +72,7 @@ pub struct CrawlerFailed { pub cloud_watch_log_link: String, pub state: String, pub message: String, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -91,7 +91,7 @@ pub struct JobRunStatus { pub job_run_id: String, pub message: String, pub started_on: String, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -105,7 +105,7 @@ pub struct JobRunStatus { pub struct NotificationCondition { #[serde(rename = "NotifyDelayAfter")] pub notify_delay_after: f64, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -121,7 +121,7 @@ pub struct DataCatalogTableStateChange { pub changed_partitions: Vec, pub type_of_change: String, pub table_name: String, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -136,7 +136,7 @@ pub struct DataCatalogDatabaseStateChange { pub database_name: String, pub type_of_change: String, pub changed_tables: Vec, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] diff --git a/lambda-events/src/event/cloudwatch_events/health.rs b/lambda-events/src/event/cloudwatch_events/health.rs index 6990320e..c6d8cca1 100644 --- a/lambda-events/src/event/cloudwatch_events/health.rs +++ b/lambda-events/src/event/cloudwatch_events/health.rs @@ -14,7 +14,7 @@ pub struct Event { pub end_time: String, pub event_description: Vec, pub affected_entities: Option>, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -28,7 +28,7 @@ pub struct Event { pub struct EventDescription { pub language: String, pub latest_description: String, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -42,7 +42,7 @@ pub struct EventDescription { pub struct Entity { pub entity_value: String, pub tags: HashMap, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] diff --git a/lambda-events/src/event/cloudwatch_events/kms.rs b/lambda-events/src/event/cloudwatch_events/kms.rs index 33ae40fd..2a0041de 100644 --- a/lambda-events/src/event/cloudwatch_events/kms.rs +++ b/lambda-events/src/event/cloudwatch_events/kms.rs @@ -7,7 +7,7 @@ use serde_json::Value; pub struct CMKEvent { #[serde(rename = "key-id")] pub key_id: String, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] diff --git a/lambda-events/src/event/cloudwatch_events/macie.rs b/lambda-events/src/event/cloudwatch_events/macie.rs index 2bd7666d..a652b8b2 100644 --- a/lambda-events/src/event/cloudwatch_events/macie.rs +++ b/lambda-events/src/event/cloudwatch_events/macie.rs @@ -21,7 +21,7 @@ pub struct Alert { pub created_at: String, pub actor: String, pub summary: T, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -45,7 +45,7 @@ pub struct Trigger { pub created_at: String, pub description: String, pub risk: i64, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -74,7 +74,7 @@ pub struct BucketScanSummary { #[serde(rename = "Events")] pub events: HashMap, pub recipient_account_id: HashMap, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -92,7 +92,7 @@ pub struct Ip { pub n34_205_153_2: i64, #[serde(rename = "72.21.196.70")] pub n72_21_196_70: i64, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -107,7 +107,7 @@ pub struct TimeRange { pub count: i64, pub start: String, pub end: String, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -121,7 +121,7 @@ pub struct TimeRange { pub struct Location { #[serde(rename = "us-east-1")] pub us_east_1: i64, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -137,7 +137,7 @@ pub struct ActionInfo { #[serde(rename = "ISP")] pub isp: HashMap, pub error_code: Option>, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -161,7 +161,7 @@ pub struct BucketWritableSummary { pub event_count: i64, #[serde(rename = "Timestamps")] pub timestamps: HashMap, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -175,7 +175,7 @@ pub struct BucketWritableSummary { pub struct Bucket { #[serde(rename = "secret-bucket-name")] pub secret_bucket_name: i64, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -189,7 +189,7 @@ pub struct Bucket { pub struct Acl { #[serde(rename = "secret-bucket-name")] pub secret_bucket_name: Vec, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -205,7 +205,7 @@ pub struct SecretBucketName { pub owner: Owner, #[serde(rename = "Grants")] pub grants: Vec, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -221,7 +221,7 @@ pub struct Owner { pub display_name: String, #[serde(rename = "ID")] pub id: String, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -237,7 +237,7 @@ pub struct Grant { pub grantee: Grantee, #[serde(rename = "Permission")] pub permission: String, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -252,7 +252,7 @@ pub struct Grantee { pub r#type: String, #[serde(rename = "URI")] pub uri: String, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -280,7 +280,7 @@ pub struct BucketContainsHighRiskObjectSummary { pub owner: HashMap, #[serde(rename = "Timestamps")] pub timestamps: HashMap, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -305,7 +305,7 @@ pub struct AlertUpdated { pub created_at: String, pub actor: String, pub trigger: UpdatedTrigger, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -320,7 +320,7 @@ pub struct UpdatedTrigger { #[serde(rename = "alert-type")] pub alert_type: String, pub features: HashMap, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -340,7 +340,7 @@ pub struct FeatureInfo { #[serde(rename = "excession_times")] pub excession_times: Vec, pub risk: i64, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] diff --git a/lambda-events/src/event/cloudwatch_events/mod.rs b/lambda-events/src/event/cloudwatch_events/mod.rs index 54da8b27..fd680c01 100644 --- a/lambda-events/src/event/cloudwatch_events/mod.rs +++ b/lambda-events/src/event/cloudwatch_events/mod.rs @@ -46,7 +46,7 @@ where pub resources: Vec, #[serde(bound = "")] pub detail: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] diff --git a/lambda-events/src/event/cloudwatch_events/opsworks.rs b/lambda-events/src/event/cloudwatch_events/opsworks.rs index 5f687dc4..30818648 100644 --- a/lambda-events/src/event/cloudwatch_events/opsworks.rs +++ b/lambda-events/src/event/cloudwatch_events/opsworks.rs @@ -17,7 +17,7 @@ pub struct InstanceStateChange { #[serde(rename = "ec2-instance-id")] pub ec2_instance_id: String, pub status: String, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -35,7 +35,7 @@ pub struct CommandStateChange { pub instance_id: String, pub r#type: String, pub status: String, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -56,7 +56,7 @@ pub struct DeploymentStateChange { pub deployment_id: String, pub command: String, pub status: String, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -74,7 +74,7 @@ pub struct Alert { pub instance_id: String, pub r#type: String, pub message: String, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] diff --git a/lambda-events/src/event/cloudwatch_events/signin.rs b/lambda-events/src/event/cloudwatch_events/signin.rs index c8f7ab25..2eb1ea5e 100644 --- a/lambda-events/src/event/cloudwatch_events/signin.rs +++ b/lambda-events/src/event/cloudwatch_events/signin.rs @@ -19,7 +19,7 @@ pub struct SignIn { #[serde(rename = "eventID")] pub event_id: String, pub event_type: String, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -35,7 +35,7 @@ pub struct UserIdentity { pub principal_id: String, pub arn: String, pub account_id: String, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -49,7 +49,7 @@ pub struct UserIdentity { pub struct ResponseElements { #[serde(rename = "ConsoleLogin")] pub console_login: String, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -67,7 +67,7 @@ pub struct AdditionalEventData { pub mobile_version: String, #[serde(rename = "MFAUsed")] pub mfaused: String, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] diff --git a/lambda-events/src/event/cloudwatch_events/sms.rs b/lambda-events/src/event/cloudwatch_events/sms.rs index 5c7e2a61..6447887a 100644 --- a/lambda-events/src/event/cloudwatch_events/sms.rs +++ b/lambda-events/src/event/cloudwatch_events/sms.rs @@ -13,7 +13,7 @@ pub struct JobStateChange { #[serde(rename = "ami-id")] pub ami_id: Option, pub version: String, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] diff --git a/lambda-events/src/event/cloudwatch_events/ssm.rs b/lambda-events/src/event/cloudwatch_events/ssm.rs index 7d4d3524..53a48e10 100644 --- a/lambda-events/src/event/cloudwatch_events/ssm.rs +++ b/lambda-events/src/event/cloudwatch_events/ssm.rs @@ -24,7 +24,7 @@ pub struct EC2AutomationStepStatusChange { pub step_name: String, #[serde(rename = "Action")] pub action: String, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -52,7 +52,7 @@ pub struct EC2AutomationExecutionStatusChange { pub time: f64, #[serde(rename = "ExecutedBy")] pub executed_by: String, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -67,7 +67,7 @@ pub struct StateChange { pub state: String, pub at_time: String, pub next_transition_time: String, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -92,7 +92,7 @@ pub struct ConfigurationComplianceStateChange { #[serde(rename = "patch-baseline-id")] pub patch_baseline_id: Option, pub serverity: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -109,7 +109,7 @@ pub struct MaintenanceWindowTargetRegistration { #[serde(rename = "window-id")] pub window_id: String, pub status: String, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -130,7 +130,7 @@ pub struct MaintenanceWindowExecutionStateChange { #[serde(rename = "window-execution-id")] pub window_execution_id: String, pub status: String, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -153,7 +153,7 @@ pub struct MaintenanceWindowTaskExecutionStateChange { #[serde(rename = "window-execution-id")] pub window_execution_id: String, pub status: String, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -180,7 +180,7 @@ pub struct MaintenanceWindowTaskTargetInvocationStateChange { pub status: String, #[serde(rename = "owner-information")] pub owner_information: String, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -195,7 +195,7 @@ pub struct MaintenanceWindowStateChange { #[serde(rename = "window-id")] pub window_id: String, pub status: String, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -211,7 +211,7 @@ pub struct ParameterStoreStateChange { pub name: String, pub r#type: String, pub description: String, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -233,7 +233,7 @@ pub struct EC2CommandStatusChange { #[serde(rename = "requested-date-time")] pub requested_date_time: String, pub status: String, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -254,7 +254,7 @@ pub struct EC2CommandInvocationStatusChange { #[serde(rename = "requested-date-time")] pub requested_date_time: String, pub status: String, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -290,7 +290,7 @@ pub struct EC2StateManagerAssociationStateChange { pub schedule_expression: String, #[serde(rename = "association-cwe-version")] pub association_cwe_version: String, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -328,7 +328,7 @@ pub struct EC2StateManagerInstanceAssociationStateChange { pub output_url: String, #[serde(rename = "instance-association-cwe-version")] pub instance_association_cwe_version: String, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] diff --git a/lambda-events/src/event/cloudwatch_events/tag.rs b/lambda-events/src/event/cloudwatch_events/tag.rs index df6970c0..08fbe24c 100644 --- a/lambda-events/src/event/cloudwatch_events/tag.rs +++ b/lambda-events/src/event/cloudwatch_events/tag.rs @@ -14,7 +14,7 @@ pub struct TagChangeOnResource { pub resource_type: String, pub version: i64, pub tags: HashMap, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] diff --git a/lambda-events/src/event/cloudwatch_events/trustedadvisor.rs b/lambda-events/src/event/cloudwatch_events/trustedadvisor.rs index b5e00c23..19f2aba0 100644 --- a/lambda-events/src/event/cloudwatch_events/trustedadvisor.rs +++ b/lambda-events/src/event/cloudwatch_events/trustedadvisor.rs @@ -14,7 +14,7 @@ pub struct CheckItemRefreshNotification { #[serde(rename = "resource_id")] pub resource_id: String, pub uuid: String, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] diff --git a/lambda-events/src/event/cloudwatch_logs/mod.rs b/lambda-events/src/event/cloudwatch_logs/mod.rs index 3002edfc..1a485a06 100644 --- a/lambda-events/src/event/cloudwatch_logs/mod.rs +++ b/lambda-events/src/event/cloudwatch_logs/mod.rs @@ -15,7 +15,7 @@ pub struct LogsEvent { /// `aws_logs` is gzipped and base64 encoded, it needs a custom deserializer #[serde(rename = "awslogs")] pub aws_logs: AwsLogs, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -47,7 +47,7 @@ pub struct LogData { pub message_type: String, /// Entries in the log batch pub log_events: Vec, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -65,7 +65,7 @@ pub struct LogEntry { pub timestamp: i64, /// Message published in the application log pub message: String, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] diff --git a/lambda-events/src/event/code_commit/mod.rs b/lambda-events/src/event/code_commit/mod.rs index eca911d4..81d85ef8 100644 --- a/lambda-events/src/event/code_commit/mod.rs +++ b/lambda-events/src/event/code_commit/mod.rs @@ -11,7 +11,7 @@ use crate::custom_serde::deserialize_nullish_boolean; pub struct CodeCommitEvent { #[serde(rename = "Records")] pub records: Vec, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -53,7 +53,7 @@ pub struct CodeCommitRecord { pub aws_region: Option, pub event_total_parts: u64, pub custom_data: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -67,10 +67,10 @@ pub struct CodeCommitRecord { #[serde(rename_all = "camelCase")] pub struct CodeCommitCodeCommit { pub references: Vec, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -89,7 +89,7 @@ pub struct CodeCommitReference { pub ref_: Option, #[serde(default, deserialize_with = "deserialize_nullish_boolean")] pub created: bool, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] diff --git a/lambda-events/src/event/codebuild/mod.rs b/lambda-events/src/event/codebuild/mod.rs index d87484f9..ac0a50de 100644 --- a/lambda-events/src/event/codebuild/mod.rs +++ b/lambda-events/src/event/codebuild/mod.rs @@ -44,7 +44,7 @@ pub struct CodeBuildEvent { /// Detail contains information specific to a build state-change or /// build phase-change event. pub detail: CodeBuildEventDetail, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -91,7 +91,7 @@ pub struct CodeBuildEventDetail { #[serde(default)] #[serde(with = "codebuild_time::optional_time")] pub completed_phase_end: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -123,7 +123,7 @@ pub struct CodeBuildEventAdditionalInformation { pub source_version: Option, pub logs: CodeBuildLogs, pub phases: Vec, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -144,7 +144,7 @@ pub struct CodeBuildArtifact { pub sha256_sum: Option, #[serde(default)] pub location: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -168,7 +168,7 @@ pub struct CodeBuildEnvironment { pub type_: Option, #[serde(rename = "environment-variables")] pub environment_variables: Vec, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -190,7 +190,7 @@ pub struct CodeBuildEnvironmentVariable { /// Value is the value of the environment variable. #[serde(default)] pub value: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -207,7 +207,7 @@ pub struct CodeBuildSource { pub location: Option, #[serde(default)] pub type_: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -229,7 +229,7 @@ pub struct CodeBuildLogs { #[serde(default)] #[serde(rename = "deep-link")] pub deep_link: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -262,7 +262,7 @@ where pub phase_type: CodeBuildPhaseType, #[serde(rename = "phase-status")] pub phase_status: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] diff --git a/lambda-events/src/event/codedeploy/mod.rs b/lambda-events/src/event/codedeploy/mod.rs index e59c1666..ec6657b6 100644 --- a/lambda-events/src/event/codedeploy/mod.rs +++ b/lambda-events/src/event/codedeploy/mod.rs @@ -40,7 +40,7 @@ pub struct CodeDeployEvent { pub resources: Vec, /// Detail contains information specific to a deployment event. pub detail: CodeDeployEventDetail, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -72,7 +72,7 @@ pub struct CodeDeployEventDetail { /// DeploymentGroup is the name of the deployment group. #[serde(default)] pub deployment_group: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -86,7 +86,7 @@ pub struct CodeDeployEventDetail { pub struct CodeDeployLifecycleEvent { pub deployment_id: String, pub lifecycle_event_hook_execution_id: String, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] diff --git a/lambda-events/src/event/codepipeline_cloudwatch/mod.rs b/lambda-events/src/event/codepipeline_cloudwatch/mod.rs index df0f8787..1863e8aa 100644 --- a/lambda-events/src/event/codepipeline_cloudwatch/mod.rs +++ b/lambda-events/src/event/codepipeline_cloudwatch/mod.rs @@ -44,7 +44,7 @@ pub struct CodePipelineCloudWatchEvent { pub resources: Vec, /// Detail contains information specific to a deployment event. pub detail: CodePipelineEventDetail, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -71,7 +71,7 @@ pub struct CodePipelineEventDetail { #[serde(default)] pub region: Option, pub type_: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -91,7 +91,7 @@ pub struct CodePipelineEventDetailType { pub provider: Option, /// From published EventBridge schema registry this is always int64 not string as documented pub version: i64, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] diff --git a/lambda-events/src/event/codepipeline_job/mod.rs b/lambda-events/src/event/codepipeline_job/mod.rs index 2d467bab..befb4c4c 100644 --- a/lambda-events/src/event/codepipeline_job/mod.rs +++ b/lambda-events/src/event/codepipeline_job/mod.rs @@ -8,7 +8,7 @@ use serde_json::Value; pub struct CodePipelineJobEvent { #[serde(rename = "CodePipeline.job")] pub code_pipeline_job: CodePipelineJob, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -26,7 +26,7 @@ pub struct CodePipelineJob { #[serde(default)] pub account_id: Option, pub data: CodePipelineData, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -46,7 +46,7 @@ pub struct CodePipelineData { pub artifact_credentials: CodePipelineArtifactCredentials, #[serde(default)] pub continuation_token: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -60,7 +60,7 @@ pub struct CodePipelineData { #[serde(rename_all = "camelCase")] pub struct CodePipelineActionConfiguration { pub configuration: CodePipelineConfiguration, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -79,7 +79,7 @@ pub struct CodePipelineConfiguration { #[serde(default)] #[serde(rename = "UserParameters")] pub user_parameters: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -96,7 +96,7 @@ pub struct CodePipelineInputArtifact { pub revision: Option, #[serde(default)] pub name: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -113,7 +113,7 @@ pub struct CodePipelineInputLocation { #[serde(default)] #[serde(rename = "type")] pub location_type: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -130,7 +130,7 @@ pub struct CodePipelineS3Location { pub bucket_name: Option, #[serde(default)] pub object_key: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -147,7 +147,7 @@ pub struct CodePipelineOutputArtifact { pub revision: Option, #[serde(default)] pub name: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -164,7 +164,7 @@ pub struct CodePipelineOutputLocation { #[serde(default)] #[serde(rename = "type")] pub location_type: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -183,7 +183,7 @@ pub struct CodePipelineArtifactCredentials { pub session_token: Option, #[serde(default)] pub access_key_id: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] diff --git a/lambda-events/src/event/cognito/mod.rs b/lambda-events/src/event/cognito/mod.rs index e8106d5a..315bc2ff 100644 --- a/lambda-events/src/event/cognito/mod.rs +++ b/lambda-events/src/event/cognito/mod.rs @@ -22,7 +22,7 @@ pub struct CognitoEvent { #[serde(default)] pub region: Option, pub version: i64, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -41,7 +41,7 @@ pub struct CognitoDatasetRecord { pub old_value: Option, #[serde(default)] pub op: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -60,7 +60,7 @@ pub struct CognitoEventUserPoolsPreSignup { pub cognito_event_user_pools_header: CognitoEventUserPoolsHeader, pub request: CognitoEventUserPoolsPreSignupRequest, pub response: CognitoEventUserPoolsPreSignupResponse, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -91,7 +91,7 @@ pub struct CognitoEventUserPoolsPreAuthentication { CognitoEventUserPoolsHeader, pub request: CognitoEventUserPoolsPreAuthenticationRequest, pub response: CognitoEventUserPoolsPreAuthenticationResponse, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -123,7 +123,7 @@ where pub request: CognitoEventUserPoolsPostConfirmationRequest, #[serde(bound = "")] pub response: T, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -151,7 +151,7 @@ pub struct CognitoEventUserPoolsPreTokenGen { pub cognito_event_user_pools_header: CognitoEventUserPoolsHeader, pub request: CognitoEventUserPoolsPreTokenGenRequest, pub response: CognitoEventUserPoolsPreTokenGenResponse, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -186,7 +186,7 @@ pub struct CognitoEventUserPoolsPostAuthentication { CognitoEventUserPoolsHeader, pub request: CognitoEventUserPoolsPostAuthenticationRequest, pub response: CognitoEventUserPoolsPostAuthenticationResponse, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -214,7 +214,7 @@ pub struct CognitoEventUserPoolsMigrateUser { pub cognito_event_user_pools_migrate_user_request: CognitoEventUserPoolsMigrateUserRequest, #[serde(rename = "response")] pub cognito_event_user_pools_migrate_user_response: CognitoEventUserPoolsMigrateUserResponse, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -241,7 +241,7 @@ pub struct CognitoEventUserPoolsCallerContext { pub awssdk_version: Option, #[serde(default)] pub client_id: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -283,7 +283,7 @@ pub struct CognitoEventUserPoolsPreSignupRequest { #[serde(deserialize_with = "deserialize_lambda_map")] #[serde(default)] pub client_metadata: HashMap, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -299,7 +299,7 @@ pub struct CognitoEventUserPoolsPreSignupResponse { pub auto_confirm_user: bool, pub auto_verify_email: bool, pub auto_verify_phone: bool, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -318,7 +318,7 @@ pub struct CognitoEventUserPoolsPreAuthenticationRequest { #[serde(deserialize_with = "deserialize_lambda_map")] #[serde(default)] pub validation_data: HashMap, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -330,7 +330,7 @@ pub struct CognitoEventUserPoolsPreAuthenticationRequest { /// `CognitoEventUserPoolsPreAuthenticationResponse` contains the response portion of a PreAuthentication event #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] pub struct CognitoEventUserPoolsPreAuthenticationResponse { - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -348,7 +348,7 @@ pub struct CognitoEventUserPoolsPostConfirmationRequest { #[serde(deserialize_with = "deserialize_lambda_map")] #[serde(default)] pub client_metadata: HashMap, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -360,7 +360,7 @@ pub struct CognitoEventUserPoolsPostConfirmationRequest { /// `CognitoEventUserPoolsPostConfirmationResponse` contains the response portion of a PostConfirmation event #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] pub struct CognitoEventUserPoolsPostConfirmationResponse { - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -380,7 +380,7 @@ pub struct CognitoEventUserPoolsPreTokenGenRequest { #[serde(deserialize_with = "deserialize_lambda_map")] #[serde(default)] pub client_metadata: HashMap, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -394,7 +394,7 @@ pub struct CognitoEventUserPoolsPreTokenGenRequest { #[serde(rename_all = "camelCase")] pub struct CognitoEventUserPoolsPreTokenGenResponse { pub claims_override_details: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -413,7 +413,7 @@ pub struct CognitoEventUserPoolsPreTokenGenV2 { pub cognito_event_user_pools_header: CognitoEventUserPoolsHeader, pub request: CognitoEventUserPoolsPreTokenGenRequestV2, pub response: CognitoEventUserPoolsPreTokenGenResponseV2, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -434,7 +434,7 @@ pub struct CognitoEventUserPoolsPreTokenGenRequestV2 { #[serde(default)] pub client_metadata: HashMap, pub scopes: Vec, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -447,7 +447,7 @@ pub struct CognitoEventUserPoolsPreTokenGenRequestV2 { #[serde(rename_all = "camelCase")] pub struct CognitoEventUserPoolsPreTokenGenResponseV2 { pub claims_and_scope_override_details: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -463,7 +463,7 @@ pub struct ClaimsAndScopeOverrideDetailsV2 { pub group_override_details: GroupConfiguration, pub id_token_generation: Option, pub access_token_generation: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -478,7 +478,7 @@ pub struct ClaimsAndScopeOverrideDetailsV2 { pub struct CognitoIdTokenGenerationV2 { pub claims_to_add_or_override: HashMap, pub claims_to_suppress: Vec, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -495,7 +495,7 @@ pub struct CognitoAccessTokenGenerationV2 { pub claims_to_suppress: Vec, pub scopes_to_add: Vec, pub scopes_to_suppress: Vec, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -515,7 +515,7 @@ pub struct CognitoEventUserPoolsPostAuthenticationRequest { #[serde(deserialize_with = "deserialize_lambda_map")] #[serde(default)] pub client_metadata: HashMap, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -527,7 +527,7 @@ pub struct CognitoEventUserPoolsPostAuthenticationRequest { /// `CognitoEventUserPoolsPostAuthenticationResponse` contains the response portion of a PostAuthentication event #[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)] pub struct CognitoEventUserPoolsPostAuthenticationResponse { - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -547,7 +547,7 @@ pub struct CognitoEventUserPoolsMigrateUserRequest { #[serde(deserialize_with = "deserialize_lambda_map")] #[serde(default)] pub client_metadata: HashMap, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -571,7 +571,7 @@ pub struct CognitoEventUserPoolsMigrateUserResponse { pub desired_delivery_mediums: Option>, #[serde(default, deserialize_with = "deserialize_nullish_boolean")] pub force_alias_creation: bool, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -589,7 +589,7 @@ pub struct ClaimsOverrideDetails { #[serde(default)] pub claims_to_add_or_override: HashMap, pub claims_to_suppress: Vec, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -605,7 +605,7 @@ pub struct GroupConfiguration { pub groups_to_override: Vec, pub iam_roles_to_override: Vec, pub preferred_role: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -624,7 +624,7 @@ pub struct CognitoEventUserPoolsChallengeResult { pub challenge_result: bool, #[serde(default)] pub challenge_metadata: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -646,7 +646,7 @@ pub struct CognitoEventUserPoolsDefineAuthChallengeRequest { pub client_metadata: HashMap, #[serde(default)] pub user_not_found: bool, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -665,7 +665,7 @@ pub struct CognitoEventUserPoolsDefineAuthChallengeResponse { pub issue_tokens: bool, #[serde(default, deserialize_with = "deserialize_nullish_boolean")] pub fail_authentication: bool, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -684,7 +684,7 @@ pub struct CognitoEventUserPoolsDefineAuthChallenge { CognitoEventUserPoolsHeader, pub request: CognitoEventUserPoolsDefineAuthChallengeRequest, pub response: CognitoEventUserPoolsDefineAuthChallengeResponse, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -715,7 +715,7 @@ pub struct CognitoEventUserPoolsCreateAuthChallengeRequest { pub client_metadata: HashMap, #[serde(default)] pub user_not_found: bool, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -736,7 +736,7 @@ pub struct CognitoEventUserPoolsCreateAuthChallengeResponse { pub private_challenge_parameters: HashMap, #[serde(default)] pub challenge_metadata: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -755,7 +755,7 @@ pub struct CognitoEventUserPoolsCreateAuthChallenge { CognitoEventUserPoolsHeader, pub request: CognitoEventUserPoolsCreateAuthChallengeRequest, pub response: CognitoEventUserPoolsCreateAuthChallengeResponse, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -792,7 +792,7 @@ where pub client_metadata: HashMap, #[serde(default)] pub user_not_found: bool, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -807,7 +807,7 @@ where pub struct CognitoEventUserPoolsVerifyAuthChallengeResponse { #[serde(default, deserialize_with = "deserialize_nullish_boolean")] pub answer_correct: bool, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -827,7 +827,7 @@ pub struct CognitoEventUserPoolsVerifyAuthChallenge { CognitoEventUserPoolsHeader, pub request: CognitoEventUserPoolsVerifyAuthChallengeRequest, pub response: CognitoEventUserPoolsVerifyAuthChallengeResponse, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -853,7 +853,7 @@ pub struct CognitoEventUserPoolsCustomMessage { pub cognito_event_user_pools_header: CognitoEventUserPoolsHeader, pub request: CognitoEventUserPoolsCustomMessageRequest, pub response: CognitoEventUserPoolsCustomMessageResponse, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -900,7 +900,7 @@ where #[serde(deserialize_with = "deserialize_lambda_map")] #[serde(default)] pub client_metadata: HashMap, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -919,7 +919,7 @@ pub struct CognitoEventUserPoolsCustomMessageResponse { pub email_message: Option, #[serde(default)] pub email_subject: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] diff --git a/lambda-events/src/event/config/mod.rs b/lambda-events/src/event/config/mod.rs index f072e3fa..fd2631a6 100644 --- a/lambda-events/src/event/config/mod.rs +++ b/lambda-events/src/event/config/mod.rs @@ -36,7 +36,7 @@ pub struct ConfigEvent { pub rule_parameters: Option, #[serde(default)] pub version: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] diff --git a/lambda-events/src/event/connect/mod.rs b/lambda-events/src/event/connect/mod.rs index b48e463c..c6bdb47b 100644 --- a/lambda-events/src/event/connect/mod.rs +++ b/lambda-events/src/event/connect/mod.rs @@ -15,7 +15,7 @@ pub struct ConnectEvent { #[serde(default)] #[serde(rename = "Name")] pub name: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -35,7 +35,7 @@ pub struct ConnectDetails { #[serde(default)] #[serde(rename = "Parameters")] pub parameters: HashMap, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -78,7 +78,7 @@ pub struct ConnectContactData { #[serde(default)] #[serde(rename = "InstanceARN")] pub instance_arn: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -97,7 +97,7 @@ pub struct ConnectEndpoint { #[serde(default)] #[serde(rename = "Type")] pub type_: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -116,7 +116,7 @@ pub struct ConnectQueue { #[serde(default)] #[serde(rename = "ARN")] pub arn: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] diff --git a/lambda-events/src/event/documentdb/events/commom_types.rs b/lambda-events/src/event/documentdb/events/commom_types.rs index fbc087a9..d9ff1c4d 100644 --- a/lambda-events/src/event/documentdb/events/commom_types.rs +++ b/lambda-events/src/event/documentdb/events/commom_types.rs @@ -11,7 +11,7 @@ pub struct DatabaseCollection { db: String, #[serde(default)] coll: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -24,7 +24,7 @@ pub struct DatabaseCollection { pub struct DocumentId { #[serde(rename = "_data")] pub data: String, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -37,7 +37,7 @@ pub struct DocumentId { pub struct DocumentKeyIdOid { #[serde(rename = "$oid")] pub oid: String, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -50,7 +50,7 @@ pub struct DocumentKeyIdOid { pub struct DocumentKeyId { #[serde(rename = "_id")] pub id: DocumentKeyIdOid, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -63,7 +63,7 @@ pub struct DocumentKeyId { pub struct InnerTimestamp { t: usize, i: usize, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -76,7 +76,7 @@ pub struct InnerTimestamp { pub struct Timestamp { #[serde(rename = "$timestamp")] pub timestamp: InnerTimestamp, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] diff --git a/lambda-events/src/event/documentdb/events/delete_event.rs b/lambda-events/src/event/documentdb/events/delete_event.rs index 0916ca32..4085a88b 100644 --- a/lambda-events/src/event/documentdb/events/delete_event.rs +++ b/lambda-events/src/event/documentdb/events/delete_event.rs @@ -19,7 +19,7 @@ pub struct ChangeDeleteEvent { // operation_type: String, #[serde(default)] txn_number: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] diff --git a/lambda-events/src/event/documentdb/events/drop_database_event.rs b/lambda-events/src/event/documentdb/events/drop_database_event.rs index 7d3b11be..fed75259 100644 --- a/lambda-events/src/event/documentdb/events/drop_database_event.rs +++ b/lambda-events/src/event/documentdb/events/drop_database_event.rs @@ -18,7 +18,7 @@ pub struct ChangeDropDatabaseEvent { // operation_type: String, #[serde(default)] txn_number: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] diff --git a/lambda-events/src/event/documentdb/events/drop_event.rs b/lambda-events/src/event/documentdb/events/drop_event.rs index 0583a789..23a8d7a8 100644 --- a/lambda-events/src/event/documentdb/events/drop_event.rs +++ b/lambda-events/src/event/documentdb/events/drop_event.rs @@ -17,7 +17,7 @@ pub struct ChangeDropEvent { // operation_type: String, #[serde(default)] txn_number: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] diff --git a/lambda-events/src/event/documentdb/events/insert_event.rs b/lambda-events/src/event/documentdb/events/insert_event.rs index 199bb566..aaf82ddc 100644 --- a/lambda-events/src/event/documentdb/events/insert_event.rs +++ b/lambda-events/src/event/documentdb/events/insert_event.rs @@ -19,7 +19,7 @@ pub struct ChangeInsertEvent { //operation_type: String, #[serde(default)] txn_number: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] diff --git a/lambda-events/src/event/documentdb/events/invalidate_event.rs b/lambda-events/src/event/documentdb/events/invalidate_event.rs index b3fb7046..8e8ef930 100644 --- a/lambda-events/src/event/documentdb/events/invalidate_event.rs +++ b/lambda-events/src/event/documentdb/events/invalidate_event.rs @@ -12,7 +12,7 @@ pub struct ChangeInvalidateEvent { #[serde(default)] cluster_time: Option, // operation_type: String, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] diff --git a/lambda-events/src/event/documentdb/events/rename_event.rs b/lambda-events/src/event/documentdb/events/rename_event.rs index d9f43032..f1761a2a 100644 --- a/lambda-events/src/event/documentdb/events/rename_event.rs +++ b/lambda-events/src/event/documentdb/events/rename_event.rs @@ -20,7 +20,7 @@ pub struct ChangeRenameEvent { #[serde(default)] txn_number: Option, to: DatabaseCollection, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] diff --git a/lambda-events/src/event/documentdb/events/replace_event.rs b/lambda-events/src/event/documentdb/events/replace_event.rs index 2cd214af..b0245241 100644 --- a/lambda-events/src/event/documentdb/events/replace_event.rs +++ b/lambda-events/src/event/documentdb/events/replace_event.rs @@ -19,7 +19,7 @@ pub struct ChangeReplaceEvent { // operation_type: String, #[serde(default)] txn_number: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] diff --git a/lambda-events/src/event/documentdb/events/update_event.rs b/lambda-events/src/event/documentdb/events/update_event.rs index 85e83d62..5d3795d0 100644 --- a/lambda-events/src/event/documentdb/events/update_event.rs +++ b/lambda-events/src/event/documentdb/events/update_event.rs @@ -9,7 +9,7 @@ use super::commom_types::{AnyDocument, DatabaseCollection, DocumentId, DocumentK pub struct UpdateTruncate { field: String, new_size: usize, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -24,7 +24,7 @@ pub struct UpdateDescription { removed_fields: Vec, truncated_arrays: Vec, updated_fields: AnyDocument, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -49,7 +49,7 @@ pub struct ChangeUpdateEvent { update_description: UpdateDescription, #[serde(default)] txn_number: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] diff --git a/lambda-events/src/event/documentdb/mod.rs b/lambda-events/src/event/documentdb/mod.rs index 77378c79..fa753823 100644 --- a/lambda-events/src/event/documentdb/mod.rs +++ b/lambda-events/src/event/documentdb/mod.rs @@ -25,7 +25,7 @@ pub enum ChangeEvent { #[derive(Clone, Debug, Deserialize, Eq, PartialEq, Serialize)] pub struct DocumentDbInnerEvent { pub event: ChangeEvent, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -42,7 +42,7 @@ pub struct DocumentDbEvent { pub events: Vec, #[serde(default)] pub event_source: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] diff --git a/lambda-events/src/event/dynamodb/mod.rs b/lambda-events/src/event/dynamodb/mod.rs index c9011f29..2a99ed69 100644 --- a/lambda-events/src/event/dynamodb/mod.rs +++ b/lambda-events/src/event/dynamodb/mod.rs @@ -117,7 +117,7 @@ impl fmt::Display for KeyType { pub struct Event { #[serde(rename = "Records")] pub records: Vec, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -137,7 +137,7 @@ pub struct TimeWindowEvent { #[serde(rename = "TimeWindowProperties")] #[serde(flatten)] pub time_window_properties: TimeWindowProperties, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -154,7 +154,7 @@ pub struct TimeWindowEventResponse { #[serde(flatten)] pub time_window_event_response_properties: TimeWindowEventResponseProperties, pub batch_item_failures: Vec, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -221,7 +221,7 @@ pub struct EventRecord { /// The DynamoDB table that this event was recorded for. #[serde(default)] pub table_name: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -237,7 +237,7 @@ pub struct UserIdentity { pub type_: String, #[serde(default)] pub principal_id: String, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -285,7 +285,7 @@ pub struct StreamRecord { #[serde(default)] #[serde(rename = "StreamViewType")] pub stream_view_type: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] diff --git a/lambda-events/src/event/ecr_scan/mod.rs b/lambda-events/src/event/ecr_scan/mod.rs index 4e8f2375..f68b4e57 100644 --- a/lambda-events/src/event/ecr_scan/mod.rs +++ b/lambda-events/src/event/ecr_scan/mod.rs @@ -22,7 +22,7 @@ pub struct EcrScanEvent { #[serde(default)] pub account: Option, pub detail: EcrScanEventDetailType, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -47,7 +47,7 @@ pub struct EcrScanEventDetailType { pub image_digest: Option, #[serde(rename = "image-tags")] pub image_tags: Vec, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -77,7 +77,7 @@ pub struct EcrScanEventFindingSeverityCounts { #[serde(default)] #[serde(rename = "UNDEFINED")] pub undefined: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] diff --git a/lambda-events/src/event/eventbridge/mod.rs b/lambda-events/src/event/eventbridge/mod.rs index 1f245a11..f2d86550 100644 --- a/lambda-events/src/event/eventbridge/mod.rs +++ b/lambda-events/src/event/eventbridge/mod.rs @@ -30,7 +30,7 @@ where pub resources: Option>, #[serde(bound = "")] pub detail: T1, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] diff --git a/lambda-events/src/event/firehose/mod.rs b/lambda-events/src/event/firehose/mod.rs index 92dbe38b..195c6da9 100644 --- a/lambda-events/src/event/firehose/mod.rs +++ b/lambda-events/src/event/firehose/mod.rs @@ -22,7 +22,7 @@ pub struct KinesisFirehoseEvent { #[serde(default)] pub region: Option, pub records: Vec, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -40,7 +40,7 @@ pub struct KinesisFirehoseEventRecord { pub data: Base64Data, #[serde(rename = "kinesisRecordMetadata")] pub kinesis_firehose_record_metadata: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -53,7 +53,7 @@ pub struct KinesisFirehoseEventRecord { #[serde(rename_all = "camelCase")] pub struct KinesisFirehoseResponse { pub records: Vec, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -72,7 +72,7 @@ pub struct KinesisFirehoseResponseRecord { pub result: Option, pub data: Base64Data, pub metadata: KinesisFirehoseResponseRecordMetadata, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -87,7 +87,7 @@ pub struct KinesisFirehoseResponseRecordMetadata { #[serde(deserialize_with = "deserialize_lambda_map")] #[serde(default)] pub partition_keys: HashMap, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -107,7 +107,7 @@ pub struct KinesisFirehoseRecordMetadata { pub sequence_number: Option, pub subsequence_number: i64, pub approximate_arrival_timestamp: MillisecondTimestamp, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] diff --git a/lambda-events/src/event/iam/mod.rs b/lambda-events/src/event/iam/mod.rs index 3ea3c3c5..f4301b1e 100644 --- a/lambda-events/src/event/iam/mod.rs +++ b/lambda-events/src/event/iam/mod.rs @@ -14,7 +14,7 @@ pub struct IamPolicyDocument { #[serde(default)] pub version: Option, pub statement: Vec, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -36,7 +36,7 @@ pub struct IamPolicyStatement { #[serde(default, deserialize_with = "deserialize_policy_condition")] #[serde(skip_serializing_if = "Option::is_none")] pub condition: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] diff --git a/lambda-events/src/event/iot/mod.rs b/lambda-events/src/event/iot/mod.rs index 1bd79d3f..cb262bd0 100644 --- a/lambda-events/src/event/iot/mod.rs +++ b/lambda-events/src/event/iot/mod.rs @@ -15,7 +15,7 @@ pub struct IoTCoreCustomAuthorizerRequest { pub protocols: Vec, pub protocol_data: Option, pub connection_metadata: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -30,7 +30,7 @@ pub struct IoTCoreProtocolData { pub tls: Option, pub http: Option, pub mqtt: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -44,7 +44,7 @@ pub struct IoTCoreProtocolData { pub struct IoTCoreTlsContext { #[serde(default)] pub server_name: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -61,7 +61,7 @@ pub struct IoTCoreHttpContext { pub headers: HeaderMap, #[serde(default)] pub query_string: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -78,7 +78,7 @@ pub struct IoTCoreMqttContext { pub password: Base64Data, #[serde(default)] pub username: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -92,7 +92,7 @@ pub struct IoTCoreMqttContext { pub struct IoTCoreConnectionMetadata { #[serde(default)] pub id: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -112,7 +112,7 @@ pub struct IoTCoreCustomAuthorizerResponse { pub disconnect_after_in_seconds: u32, pub refresh_after_in_seconds: u32, pub policy_documents: Vec>, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] diff --git a/lambda-events/src/event/iot_1_click/mod.rs b/lambda-events/src/event/iot_1_click/mod.rs index 61150694..866918a9 100644 --- a/lambda-events/src/event/iot_1_click/mod.rs +++ b/lambda-events/src/event/iot_1_click/mod.rs @@ -13,7 +13,7 @@ pub struct IoTOneClickEvent { pub device_event: IoTOneClickDeviceEvent, pub device_info: IoTOneClickDeviceInfo, pub placement_info: IoTOneClickPlacementInfo, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -26,7 +26,7 @@ pub struct IoTOneClickEvent { #[serde(rename_all = "camelCase")] pub struct IoTOneClickDeviceEvent { pub button_clicked: IoTOneClickButtonClicked, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -42,7 +42,7 @@ pub struct IoTOneClickButtonClicked { pub click_type: Option, #[serde(default)] pub reported_time: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -62,7 +62,7 @@ pub struct IoTOneClickDeviceInfo { #[serde(default)] pub device_id: Option, pub remaining_life: f64, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -84,7 +84,7 @@ pub struct IoTOneClickPlacementInfo { #[serde(deserialize_with = "deserialize_lambda_map")] #[serde(default)] pub devices: HashMap, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] diff --git a/lambda-events/src/event/iot_button/mod.rs b/lambda-events/src/event/iot_button/mod.rs index 465431d4..00e4f6af 100644 --- a/lambda-events/src/event/iot_button/mod.rs +++ b/lambda-events/src/event/iot_button/mod.rs @@ -11,7 +11,7 @@ pub struct IoTButtonEvent { pub click_type: Option, #[serde(default)] pub battery_voltage: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] diff --git a/lambda-events/src/event/iot_deprecated/mod.rs b/lambda-events/src/event/iot_deprecated/mod.rs index 52e6f9f8..30475675 100644 --- a/lambda-events/src/event/iot_deprecated/mod.rs +++ b/lambda-events/src/event/iot_deprecated/mod.rs @@ -16,7 +16,7 @@ pub struct IoTCustomAuthorizerRequest { pub authorization_token: Option, #[serde(default)] pub token_signature: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -42,7 +42,7 @@ pub struct IoTCustomAuthorizerResponse { pub disconnect_after_in_seconds: i32, pub refresh_after_in_seconds: i32, pub policy_documents: Vec, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] diff --git a/lambda-events/src/event/kafka/mod.rs b/lambda-events/src/event/kafka/mod.rs index 5b36871b..032f1615 100644 --- a/lambda-events/src/event/kafka/mod.rs +++ b/lambda-events/src/event/kafka/mod.rs @@ -16,7 +16,7 @@ pub struct KafkaEvent { pub records: HashMap>, #[serde(default)] pub bootstrap_servers: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -38,7 +38,7 @@ pub struct KafkaRecord { pub key: Option, pub value: Option, pub headers: Vec>>, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] diff --git a/lambda-events/src/event/kinesis/analytics.rs b/lambda-events/src/event/kinesis/analytics.rs index d4754667..e9f8f676 100644 --- a/lambda-events/src/event/kinesis/analytics.rs +++ b/lambda-events/src/event/kinesis/analytics.rs @@ -11,7 +11,7 @@ pub struct KinesisAnalyticsOutputDeliveryEvent { #[serde(default)] pub application_arn: Option, pub records: Vec, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -26,7 +26,7 @@ pub struct KinesisAnalyticsOutputDeliveryEventRecord { #[serde(default)] pub record_id: Option, pub data: Base64Data, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -39,7 +39,7 @@ pub struct KinesisAnalyticsOutputDeliveryEventRecord { #[serde(rename_all = "camelCase")] pub struct KinesisAnalyticsOutputDeliveryResponse { pub records: Vec, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -56,7 +56,7 @@ pub struct KinesisAnalyticsOutputDeliveryResponseRecord { /// possible values include Ok and DeliveryFailed #[serde(default)] pub result: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] diff --git a/lambda-events/src/event/kinesis/event.rs b/lambda-events/src/event/kinesis/event.rs index 02a9c402..6b9c1c77 100644 --- a/lambda-events/src/event/kinesis/event.rs +++ b/lambda-events/src/event/kinesis/event.rs @@ -11,7 +11,7 @@ use serde_json::Value; pub struct KinesisEvent { #[serde(rename = "Records")] pub records: Vec, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -31,7 +31,7 @@ pub struct KinesisTimeWindowEvent { #[serde(rename = "TimeWindowProperties")] #[serde(flatten)] pub time_window_properties: TimeWindowProperties, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -48,7 +48,7 @@ pub struct KinesisTimeWindowEventResponse { #[serde(flatten)] pub time_window_event_response_properties: TimeWindowEventResponseProperties, // pub batch_item_failures: Vec, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -80,7 +80,7 @@ pub struct KinesisEventRecord { #[serde(default)] pub invoke_identity_arn: Option, pub kinesis: KinesisRecord, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -102,7 +102,7 @@ pub struct KinesisRecord { pub sequence_number: String, #[serde(default)] pub kinesis_schema_version: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] diff --git a/lambda-events/src/event/lambda_function_urls/mod.rs b/lambda-events/src/event/lambda_function_urls/mod.rs index 7a68b9de..a754af0d 100644 --- a/lambda-events/src/event/lambda_function_urls/mod.rs +++ b/lambda-events/src/event/lambda_function_urls/mod.rs @@ -27,7 +27,7 @@ pub struct LambdaFunctionUrlRequest { pub request_context: LambdaFunctionUrlRequestContext, pub body: Option, pub is_base64_encoded: bool, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -59,7 +59,7 @@ pub struct LambdaFunctionUrlRequestContext { pub time: Option, pub time_epoch: i64, pub http: LambdaFunctionUrlRequestContextHttpDescription, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -73,7 +73,7 @@ pub struct LambdaFunctionUrlRequestContext { #[serde(rename_all = "camelCase")] pub struct LambdaFunctionUrlRequestContextAuthorizerDescription { pub iam: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -96,7 +96,7 @@ pub struct LambdaFunctionUrlRequestContextAuthorizerIamDescription { pub user_arn: Option, #[serde(default)] pub user_id: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -119,7 +119,7 @@ pub struct LambdaFunctionUrlRequestContextHttpDescription { pub source_ip: Option, #[serde(default)] pub user_agent: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -140,7 +140,7 @@ pub struct LambdaFunctionUrlResponse { pub body: Option, pub is_base64_encoded: bool, pub cookies: Vec, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] diff --git a/lambda-events/src/event/lex/mod.rs b/lambda-events/src/event/lex/mod.rs index 6cc7dfb3..c9c23c53 100644 --- a/lambda-events/src/event/lex/mod.rs +++ b/lambda-events/src/event/lex/mod.rs @@ -22,7 +22,7 @@ pub struct LexEvent { pub alternative_intents: Option>, /// Deprecated: the DialogAction field is never populated by Lex events pub dialog_action: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -37,7 +37,7 @@ pub struct LexBot { pub name: Option, pub alias: Option, pub version: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -56,7 +56,7 @@ pub struct LexCurrentIntent { #[serde(default)] pub slot_details: HashMap, pub confirmation_status: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -75,7 +75,7 @@ pub struct LexAlternativeIntents { #[serde(default)] pub slot_details: HashMap, pub confirmation_status: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -89,7 +89,7 @@ pub struct LexAlternativeIntents { pub struct SlotDetail { pub resolutions: Option>>, pub original_value: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -110,7 +110,7 @@ pub struct LexDialogAction { pub slots: Option, pub slot_to_elicit: Option, pub response_card: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -128,7 +128,7 @@ pub type Slots = HashMap>; pub struct LexResponse { pub session_attributes: SessionAttributes, pub dialog_action: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -143,7 +143,7 @@ pub struct LexResponseCard { pub version: Option, pub content_type: Option, pub generic_attachments: Option>, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -160,7 +160,7 @@ pub struct Attachment { pub image_url: Option, pub attachment_link_url: Option, pub buttons: Option>>, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] diff --git a/lambda-events/src/event/rabbitmq/mod.rs b/lambda-events/src/event/rabbitmq/mod.rs index cdad792d..fd9088c5 100644 --- a/lambda-events/src/event/rabbitmq/mod.rs +++ b/lambda-events/src/event/rabbitmq/mod.rs @@ -15,7 +15,7 @@ pub struct RabbitMqEvent { #[serde(default)] #[serde(rename = "rmqMessagesByQueue")] pub messages_by_queue: HashMap>, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -31,7 +31,7 @@ pub struct RabbitMqMessage { #[serde(default)] pub data: Option, pub redelivered: bool, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -70,7 +70,7 @@ where pub app_id: Option, pub cluster_id: Option, pub body_size: u64, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] diff --git a/lambda-events/src/event/s3/batch_job.rs b/lambda-events/src/event/s3/batch_job.rs index a253880f..133960f3 100644 --- a/lambda-events/src/event/s3/batch_job.rs +++ b/lambda-events/src/event/s3/batch_job.rs @@ -12,7 +12,7 @@ pub struct S3BatchJobEvent { pub invocation_id: Option, pub job: S3BatchJob, pub tasks: Vec, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -27,7 +27,7 @@ pub struct S3BatchJobEvent { pub struct S3BatchJob { #[serde(default)] pub id: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -48,7 +48,7 @@ pub struct S3BatchJobTask { pub s3_version_id: Option, #[serde(default)] pub s3_bucket_arn: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -68,7 +68,7 @@ pub struct S3BatchJobResponse { #[serde(default)] pub invocation_id: Option, pub results: Vec, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -87,7 +87,7 @@ pub struct S3BatchJobResult { pub result_code: Option, #[serde(default)] pub result_string: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] diff --git a/lambda-events/src/event/s3/event.rs b/lambda-events/src/event/s3/event.rs index 6c61a426..46a334db 100644 --- a/lambda-events/src/event/s3/event.rs +++ b/lambda-events/src/event/s3/event.rs @@ -12,7 +12,7 @@ use crate::custom_serde::deserialize_lambda_map; pub struct S3Event { #[serde(rename = "Records")] pub records: Vec, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -41,7 +41,7 @@ pub struct S3EventRecord { #[serde(default)] pub response_elements: HashMap, pub s3: S3Entity, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -55,7 +55,7 @@ pub struct S3EventRecord { pub struct S3UserIdentity { #[serde(default)] pub principal_id: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -70,7 +70,7 @@ pub struct S3RequestParameters { #[serde(default)] #[serde(rename = "sourceIPAddress")] pub source_ip_address: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -89,7 +89,7 @@ pub struct S3Entity { pub configuration_id: Option, pub bucket: S3Bucket, pub object: S3Object, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -107,7 +107,7 @@ pub struct S3Bucket { pub owner_identity: Option, #[serde(default)] pub arn: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -130,7 +130,7 @@ pub struct S3Object { pub e_tag: Option, #[serde(default)] pub sequencer: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] diff --git a/lambda-events/src/event/s3/object_lambda.rs b/lambda-events/src/event/s3/object_lambda.rs index ed28d9dd..3b01fe73 100644 --- a/lambda-events/src/event/s3/object_lambda.rs +++ b/lambda-events/src/event/s3/object_lambda.rs @@ -24,7 +24,7 @@ where pub user_request: UserRequest, pub user_identity: UserIdentity, pub protocol_version: String, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -41,7 +41,7 @@ pub struct GetObjectContext { pub input_s3_url: String, pub output_route: String, pub output_token: String, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -56,7 +56,7 @@ pub struct GetObjectContext { #[serde(rename_all = "camelCase")] pub struct HeadObjectContext { pub input_s3_url: String, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -71,7 +71,7 @@ pub struct HeadObjectContext { #[serde(rename_all = "camelCase")] pub struct ListObjectsContext { pub input_s3_url: String, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -86,7 +86,7 @@ pub struct ListObjectsContext { #[serde(rename_all = "camelCase")] pub struct ListObjectsV2Context { pub input_s3_url: String, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -107,7 +107,7 @@ where pub supporting_access_point_arn: String, #[serde(default, bound = "")] pub payload: P, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -124,7 +124,7 @@ pub struct UserRequest { #[serde(deserialize_with = "deserialize_headers", default)] #[serde(serialize_with = "serialize_headers")] pub headers: HeaderMap, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -143,7 +143,7 @@ pub struct UserIdentity { pub account_id: String, pub access_key_id: String, pub session_context: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -158,7 +158,7 @@ pub struct SessionContext { pub attributes: HashMap, #[serde(default)] pub session_issuer: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -175,7 +175,7 @@ pub struct SessionIssuer { pub arn: String, pub account_id: String, pub user_name: String, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] diff --git a/lambda-events/src/event/secretsmanager/mod.rs b/lambda-events/src/event/secretsmanager/mod.rs index 8d3f8f91..2c5b497c 100644 --- a/lambda-events/src/event/secretsmanager/mod.rs +++ b/lambda-events/src/event/secretsmanager/mod.rs @@ -8,7 +8,7 @@ pub struct SecretsManagerSecretRotationEvent { pub step: String, pub secret_id: String, pub client_request_token: String, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] diff --git a/lambda-events/src/event/ses/mod.rs b/lambda-events/src/event/ses/mod.rs index 424071eb..78262b0b 100644 --- a/lambda-events/src/event/ses/mod.rs +++ b/lambda-events/src/event/ses/mod.rs @@ -9,7 +9,7 @@ use serde_json::Value; pub struct SimpleEmailEvent { #[serde(rename = "Records")] pub records: Vec, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -26,7 +26,7 @@ pub struct SimpleEmailRecord { #[serde(default)] pub event_source: Option, pub ses: SimpleEmailService, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -41,7 +41,7 @@ pub struct SimpleEmailService { pub mail: SimpleEmailMessage, pub receipt: SimpleEmailReceipt, pub content: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -62,7 +62,7 @@ pub struct SimpleEmailMessage { pub headers_truncated: bool, #[serde(default)] pub message_id: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -85,7 +85,7 @@ pub struct SimpleEmailReceipt { pub virus_verdict: SimpleEmailVerdict, pub action: SimpleEmailReceiptAction, pub processing_time_millis: i64, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -101,7 +101,7 @@ pub struct SimpleEmailHeader { pub name: Option, #[serde(default)] pub value: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -123,7 +123,7 @@ pub struct SimpleEmailCommonHeaders { pub date: Option, #[serde(default)] pub subject: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -151,7 +151,7 @@ pub struct SimpleEmailReceiptAction { pub invocation_type: Option, pub function_arn: Option, pub organization_arn: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -165,7 +165,7 @@ pub struct SimpleEmailReceiptAction { pub struct SimpleEmailVerdict { #[serde(default)] pub status: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -181,7 +181,7 @@ pub type SimpleEmailDispositionValue = String; #[serde(rename_all = "camelCase")] pub struct SimpleEmailDisposition { pub disposition: SimpleEmailDispositionValue, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] diff --git a/lambda-events/src/event/sns/mod.rs b/lambda-events/src/event/sns/mod.rs index dfc296d5..f68ec984 100644 --- a/lambda-events/src/event/sns/mod.rs +++ b/lambda-events/src/event/sns/mod.rs @@ -14,7 +14,7 @@ use crate::custom_serde::{deserialize_lambda_map, deserialize_nullish_boolean}; pub struct SnsEvent { pub records: Vec, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -39,7 +39,7 @@ pub struct SnsRecord { /// An SNS object representing the SNS message. pub sns: SnsMessage, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -95,7 +95,7 @@ pub struct SnsMessage { #[serde(default)] pub message_attributes: HashMap, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -113,7 +113,7 @@ pub struct SnsMessage { pub struct SnsEventObj { pub records: Vec>, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -139,7 +139,7 @@ pub struct SnsRecordObj { /// An SNS object representing the SNS message. pub sns: SnsMessageObj, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -199,7 +199,7 @@ pub struct SnsMessageObj { #[serde(default)] pub message_attributes: HashMap, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -223,7 +223,7 @@ pub struct MessageAttribute { #[serde(rename = "Value")] pub value: String, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -246,7 +246,7 @@ pub struct CloudWatchAlarmPayload { pub alarm_arn: String, pub old_state_value: String, pub trigger: CloudWatchAlarmTrigger, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -273,7 +273,7 @@ pub struct CloudWatchAlarmTrigger { pub unit: Option, #[serde(default)] pub dimensions: Vec, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -292,7 +292,7 @@ pub struct CloudWatchMetricDataQuery { pub period: Option, #[serde(default, deserialize_with = "deserialize_nullish_boolean")] pub return_data: bool, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -308,7 +308,7 @@ pub struct CloudWatchMetricStat { pub period: i64, pub stat: String, pub unit: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -324,7 +324,7 @@ pub struct CloudWatchMetric { pub dimensions: Vec, pub metric_name: Option, pub namespace: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -337,7 +337,7 @@ pub struct CloudWatchMetric { pub struct CloudWatchDimension { pub name: String, pub value: String, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] diff --git a/lambda-events/src/event/sqs/mod.rs b/lambda-events/src/event/sqs/mod.rs index cb9be785..64a368ca 100644 --- a/lambda-events/src/event/sqs/mod.rs +++ b/lambda-events/src/event/sqs/mod.rs @@ -10,7 +10,7 @@ use std::collections::HashMap; pub struct SqsEvent { #[serde(rename = "Records")] pub records: Vec, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -47,7 +47,7 @@ pub struct SqsMessage { pub event_source: Option, #[serde(default)] pub aws_region: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -64,7 +64,7 @@ pub struct SqsEventObj { #[serde(rename = "Records")] #[serde(bound(deserialize = "T: DeserializeOwned"))] pub records: Vec>, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -106,7 +106,7 @@ pub struct SqsMessageObj { pub event_source: Option, #[serde(default)] pub aws_region: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -126,7 +126,7 @@ pub struct SqsMessageAttribute { pub binary_list_values: Vec, #[serde(default)] pub data_type: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -139,7 +139,7 @@ pub struct SqsMessageAttribute { #[serde(rename_all = "camelCase")] pub struct SqsBatchResponse { pub batch_item_failures: Vec, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -152,7 +152,7 @@ pub struct SqsBatchResponse { #[serde(rename_all = "camelCase")] pub struct BatchItemFailure { pub item_identifier: String, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -168,7 +168,7 @@ pub struct BatchItemFailure { pub struct SqsApiEventObj { #[serde(bound(deserialize = "T: DeserializeOwned"))] pub messages: Vec>, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -182,7 +182,7 @@ pub struct SqsApiEventObj { #[serde(rename_all = "camelCase")] pub struct SqsApiEvent { pub messages: Vec, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -218,7 +218,7 @@ pub struct SqsApiMessageObj { #[serde(deserialize_with = "deserialize_lambda_map")] #[serde(default)] pub message_attributes: HashMap, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -248,7 +248,7 @@ pub struct SqsApiMessage { #[serde(deserialize_with = "deserialize_lambda_map")] #[serde(default)] pub message_attributes: HashMap, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] diff --git a/lambda-events/src/event/streams/mod.rs b/lambda-events/src/event/streams/mod.rs index 28d5b34a..673217fc 100644 --- a/lambda-events/src/event/streams/mod.rs +++ b/lambda-events/src/event/streams/mod.rs @@ -7,7 +7,7 @@ use serde_json::Value; #[serde(rename_all = "camelCase")] pub struct KinesisEventResponse { pub batch_item_failures: Vec, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -22,7 +22,7 @@ pub struct KinesisEventResponse { pub struct KinesisBatchItemFailure { #[serde(default)] pub item_identifier: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -36,7 +36,7 @@ pub struct KinesisBatchItemFailure { #[serde(rename_all = "camelCase")] pub struct DynamoDbEventResponse { pub batch_item_failures: Vec, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -51,7 +51,7 @@ pub struct DynamoDbEventResponse { pub struct DynamoDbBatchItemFailure { #[serde(default)] pub item_identifier: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -65,7 +65,7 @@ pub struct DynamoDbBatchItemFailure { #[serde(rename_all = "camelCase")] pub struct SqsEventResponse { pub batch_item_failures: Vec, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")] @@ -80,7 +80,7 @@ pub struct SqsEventResponse { pub struct SqsBatchItemFailure { #[serde(default)] pub item_identifier: Option, - /// Catchall to catch any additional fields that were present but not expected by this struct. + /// Catchall to catch any additional fields that were present but not explicitly defined by this struct. /// Enabled with Cargo feature `catch-all-fields`. /// If `catch-all-fields` is disabled, any additional fields that are present will be ignored. #[cfg(feature = "catch-all-fields")]