Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions lambda-runtime/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,23 +57,31 @@ pub struct ClientContext {
#[serde(rename_all = "camelCase")]
pub struct ClientApplication {
/// The mobile app installation id
#[serde(alias = "installation_id")]
pub installation_id: String,
/// The app title for the mobile app as registered with AWS' mobile services.
#[serde(alias = "app_title")]
pub app_title: String,
/// The version name of the application as registered with AWS' mobile services.
#[serde(alias = "app_version_name")]
pub app_version_name: String,
/// The app version code.
#[serde(alias = "app_version_code")]
pub app_version_code: String,
/// The package name for the mobile application invoking the function
#[serde(alias = "app_package_name")]
pub app_package_name: String,
}

/// Cognito identity information sent with the event
#[derive(Serialize, Deserialize, Clone, Debug, Eq, PartialEq)]
#[serde(rename_all = "camelCase")]
pub struct CognitoIdentity {
/// The unique identity id for the Cognito credentials invoking the function.
#[serde(alias = "cognitoIdentityId", alias = "identity_id")]
pub identity_id: String,
/// The identity pool id the caller is "registered" with.
#[serde(alias = "cognitoIdentityPoolId", alias = "identity_pool_id")]
pub identity_pool_id: String,
}

Expand Down