@@ -3,7 +3,7 @@ use http::{HeaderMap, HeaderValue};
33use serde:: { Deserialize , Serialize } ;
44use std:: { collections:: HashMap , convert:: TryFrom } ;
55
6- #[ derive( Debug , PartialEq , Clone , Serialize , Deserialize ) ]
6+ #[ derive( Debug , Eq , PartialEq , Clone , Serialize , Deserialize ) ]
77#[ serde( rename_all = "camelCase" ) ]
88pub ( crate ) struct Diagnostic {
99 pub ( crate ) error_type : String ,
@@ -28,33 +28,33 @@ fn round_trip_lambda_error() -> Result<(), Error> {
2828/// The request ID, which identifies the request that triggered the function invocation. This header
2929/// tracks the invocation within the Lambda control plane. The request ID is used to specify completion
3030/// of a given invocation.
31- #[ derive( Debug , Clone , PartialEq ) ]
31+ #[ derive( Debug , Clone , Eq , PartialEq ) ]
3232pub struct RequestId ( pub String ) ;
3333
3434/// The date that the function times out in Unix time milliseconds. For example, `1542409706888`.
35- #[ derive( Debug , Clone , PartialEq ) ]
35+ #[ derive( Debug , Clone , Eq , PartialEq ) ]
3636pub struct InvocationDeadline ( pub u64 ) ;
3737
3838/// The ARN of the Lambda function, version, or alias that is specified in the invocation.
3939/// For instance, `arn:aws:lambda:us-east-2:123456789012:function:custom-runtime`.
40- #[ derive( Debug , Clone , PartialEq ) ]
40+ #[ derive( Debug , Clone , Eq , PartialEq ) ]
4141pub struct FunctionArn ( pub String ) ;
4242
4343/// The AWS X-Ray Tracing header. For more information,
4444/// please see [AWS' documentation](https://docs.aws.amazon.com/xray/latest/devguide/xray-concepts.html#xray-concepts-tracingheader).
45- #[ derive( Debug , Clone , PartialEq ) ]
45+ #[ derive( Debug , Clone , Eq , PartialEq ) ]
4646pub struct XRayTraceId ( pub String ) ;
4747
4848/// For invocations from the AWS Mobile SDK contains data about client application and device.
49- #[ derive( Debug , Clone , PartialEq ) ]
49+ #[ derive( Debug , Clone , Eq , PartialEq ) ]
5050struct MobileClientContext ( String ) ;
5151
5252/// For invocations from the AWS Mobile SDK, data about the Amazon Cognito identity provider.
53- #[ derive( Debug , Clone , PartialEq ) ]
53+ #[ derive( Debug , Clone , Eq , PartialEq ) ]
5454struct MobileClientIdentity ( String ) ;
5555
5656/// Client context sent by the AWS Mobile SDK.
57- #[ derive( Serialize , Deserialize , Clone , Debug , PartialEq ) ]
57+ #[ derive( Serialize , Deserialize , Clone , Debug , Eq , PartialEq ) ]
5858pub struct ClientContext {
5959 /// Information about the mobile application invoking the function.
6060 #[ serde( default ) ]
@@ -68,7 +68,7 @@ pub struct ClientContext {
6868}
6969
7070/// AWS Mobile SDK client fields.
71- #[ derive( Serialize , Deserialize , Default , Clone , Debug , PartialEq ) ]
71+ #[ derive( Serialize , Deserialize , Default , Clone , Debug , Eq , PartialEq ) ]
7272#[ serde( rename_all = "camelCase" ) ]
7373pub struct ClientApplication {
7474 /// The mobile app installation id
@@ -84,7 +84,7 @@ pub struct ClientApplication {
8484}
8585
8686/// Cognito identity information sent with the event
87- #[ derive( Serialize , Deserialize , Clone , Debug , PartialEq ) ]
87+ #[ derive( Serialize , Deserialize , Clone , Debug , Eq , PartialEq ) ]
8888pub struct CognitoIdentity {
8989 /// The unique identity id for the Cognito credentials invoking the function.
9090 pub identity_id : String ,
@@ -96,7 +96,7 @@ pub struct CognitoIdentity {
9696/// are populated using the [Lambda environment variables](https://docs.aws.amazon.com/lambda/latest/dg/current-supported-versions.html)
9797/// and the headers returned by the poll request to the Runtime APIs.
9898#[ non_exhaustive]
99- #[ derive( Clone , Debug , PartialEq , Default , Serialize , Deserialize ) ]
99+ #[ derive( Clone , Debug , Eq , PartialEq , Default , Serialize , Deserialize ) ]
100100pub struct Context {
101101 /// The AWS request ID generated by the Lambda service.
102102 pub request_id : String ,
0 commit comments