@@ -57,23 +57,31 @@ pub struct ClientContext {
57
57
#[ serde( rename_all = "camelCase" ) ]
58
58
pub struct ClientApplication {
59
59
/// The mobile app installation id
60
+ #[ serde( alias = "installation_id" ) ]
60
61
pub installation_id : String ,
61
62
/// The app title for the mobile app as registered with AWS' mobile services.
63
+ #[ serde( alias = "app_title" ) ]
62
64
pub app_title : String ,
63
65
/// The version name of the application as registered with AWS' mobile services.
66
+ #[ serde( alias = "app_version_name" ) ]
64
67
pub app_version_name : String ,
65
68
/// The app version code.
69
+ #[ serde( alias = "app_version_code" ) ]
66
70
pub app_version_code : String ,
67
71
/// The package name for the mobile application invoking the function
72
+ #[ serde( alias = "app_package_name" ) ]
68
73
pub app_package_name : String ,
69
74
}
70
75
71
76
/// Cognito identity information sent with the event
72
77
#[ derive( Serialize , Deserialize , Clone , Debug , Eq , PartialEq ) ]
78
+ #[ serde( rename_all = "camelCase" ) ]
73
79
pub struct CognitoIdentity {
74
80
/// The unique identity id for the Cognito credentials invoking the function.
81
+ #[ serde( alias = "cognitoIdentityId" , alias = "identity_id" ) ]
75
82
pub identity_id : String ,
76
83
/// The identity pool id the caller is "registered" with.
84
+ #[ serde( alias = "cognitoIdentityPoolId" , alias = "identity_pool_id" ) ]
77
85
pub identity_pool_id : String ,
78
86
}
79
87
0 commit comments