@@ -3,7 +3,7 @@ use http::{HeaderMap, HeaderValue};
3
3
use serde:: { Deserialize , Serialize } ;
4
4
use std:: { collections:: HashMap , convert:: TryFrom } ;
5
5
6
- #[ derive( Debug , PartialEq , Clone , Serialize , Deserialize ) ]
6
+ #[ derive( Debug , Eq , PartialEq , Clone , Serialize , Deserialize ) ]
7
7
#[ serde( rename_all = "camelCase" ) ]
8
8
pub ( crate ) struct Diagnostic {
9
9
pub ( crate ) error_type : String ,
@@ -28,33 +28,33 @@ fn round_trip_lambda_error() -> Result<(), Error> {
28
28
/// The request ID, which identifies the request that triggered the function invocation. This header
29
29
/// tracks the invocation within the Lambda control plane. The request ID is used to specify completion
30
30
/// of a given invocation.
31
- #[ derive( Debug , Clone , PartialEq ) ]
31
+ #[ derive( Debug , Clone , Eq , PartialEq ) ]
32
32
pub struct RequestId ( pub String ) ;
33
33
34
34
/// 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 ) ]
36
36
pub struct InvocationDeadline ( pub u64 ) ;
37
37
38
38
/// The ARN of the Lambda function, version, or alias that is specified in the invocation.
39
39
/// For instance, `arn:aws:lambda:us-east-2:123456789012:function:custom-runtime`.
40
- #[ derive( Debug , Clone , PartialEq ) ]
40
+ #[ derive( Debug , Clone , Eq , PartialEq ) ]
41
41
pub struct FunctionArn ( pub String ) ;
42
42
43
43
/// The AWS X-Ray Tracing header. For more information,
44
44
/// 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 ) ]
46
46
pub struct XRayTraceId ( pub String ) ;
47
47
48
48
/// 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 ) ]
50
50
struct MobileClientContext ( String ) ;
51
51
52
52
/// 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 ) ]
54
54
struct MobileClientIdentity ( String ) ;
55
55
56
56
/// Client context sent by the AWS Mobile SDK.
57
- #[ derive( Serialize , Deserialize , Clone , Debug , PartialEq ) ]
57
+ #[ derive( Serialize , Deserialize , Clone , Debug , Eq , PartialEq ) ]
58
58
pub struct ClientContext {
59
59
/// Information about the mobile application invoking the function.
60
60
#[ serde( default ) ]
@@ -68,7 +68,7 @@ pub struct ClientContext {
68
68
}
69
69
70
70
/// AWS Mobile SDK client fields.
71
- #[ derive( Serialize , Deserialize , Default , Clone , Debug , PartialEq ) ]
71
+ #[ derive( Serialize , Deserialize , Default , Clone , Debug , Eq , PartialEq ) ]
72
72
#[ serde( rename_all = "camelCase" ) ]
73
73
pub struct ClientApplication {
74
74
/// The mobile app installation id
@@ -84,7 +84,7 @@ pub struct ClientApplication {
84
84
}
85
85
86
86
/// Cognito identity information sent with the event
87
- #[ derive( Serialize , Deserialize , Clone , Debug , PartialEq ) ]
87
+ #[ derive( Serialize , Deserialize , Clone , Debug , Eq , PartialEq ) ]
88
88
pub struct CognitoIdentity {
89
89
/// The unique identity id for the Cognito credentials invoking the function.
90
90
pub identity_id : String ,
@@ -96,7 +96,7 @@ pub struct CognitoIdentity {
96
96
/// are populated using the [Lambda environment variables](https://docs.aws.amazon.com/lambda/latest/dg/current-supported-versions.html)
97
97
/// and the headers returned by the poll request to the Runtime APIs.
98
98
#[ non_exhaustive]
99
- #[ derive( Clone , Debug , PartialEq , Default , Serialize , Deserialize ) ]
99
+ #[ derive( Clone , Debug , Eq , PartialEq , Default , Serialize , Deserialize ) ]
100
100
pub struct Context {
101
101
/// The AWS request ID generated by the Lambda service.
102
102
pub request_id : String ,
0 commit comments