Skip to content

Commit 1f512a9

Browse files
committed
Added #deser to Config, Context
1 parent 19e6881 commit 1f512a9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lambda/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ use types::Diagnostic;
7171
pub(crate) type Error = Box<dyn std::error::Error + Send + Sync + 'static>;
7272

7373
/// Configuration derived from environment variables.
74-
#[derive(Debug, Default, Clone, PartialEq, Serialize)]
74+
#[derive(Debug, Default, Clone, PartialEq, Serialize, Deserialize)]
7575
pub struct Config {
7676
/// The host and port of the [runtime API](https://docs.aws.amazon.com/lambda/latest/dg/runtimes-api.html).
7777
pub endpoint: String,

lambda/src/types.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ pub struct CognitoIdentity {
9393
/// are populated using the [Lambda environment variables](https://docs.aws.amazon.com/lambda/latest/dg/current-supported-versions.html)
9494
/// and the headers returned by the poll request to the Runtime APIs.
9595
#[non_exhaustive]
96-
#[derive(Clone, Debug, PartialEq, Default, Serialize)]
96+
#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
9797
pub struct Context {
9898
/// The AWS request ID generated by the Lambda service.
9999
pub request_id: String,

0 commit comments

Comments
 (0)