Repository: awslabs/aws-lambda-rust-runtime (language: rust)

Issue:
Context::default() function or associated item not found in `Context`
Hi, I've been using 0.8.1 and after updating to `0.9.0` I can no longer run tests.


```
src/main.rs:86:36
   |
86 |         let mut context = Context::default();
   |                                    ^^^^^^^ function or associated item not found in `Context`
```

Although readme and examples still show `Context::default()`. Has that been removed on purpose?

I replicated the issue on this project as well https://github.com/awslabs/aws-lambda-rust-runtime/tree/main/examples/basic-sdk/src

Tried it on the 
* current master - did not work
* on tag `lambda-runtime-0.8.1` - worked as expected, can confirm this still works in `0.8.3`


This seems to be a root issue:

https://github.com/awslabs/aws-lambda-rust-runtime/commit/53637e79ef499088007b74e702fb864748622bce#diff-ea9f9e8a3273dae249b71b478e9026be91d1ee33c280edec3d1aa25077f7bd11L100

https://github.com/awslabs/aws-lambda-rust-runtime/pull/732


Discussion / hints:
What do you use a default context with no data for?

Fix patch:
diff --git a/lambda-runtime/src/types.rs b/lambda-runtime/src/types.rs
index f2a36073..85f6af78 100644
--- a/lambda-runtime/src/types.rs
+++ b/lambda-runtime/src/types.rs
@@ -94,6 +94,20 @@ pub struct Context {
     pub env_config: RefConfig,
 }
 
+impl Default for Context {
+    fn default() -> Context {
+        Context {
+            request_id: "".to_owned(),
+            deadline: 0,
+            invoked_function_arn: "".to_owned(),
+            xray_trace_id: None,
+            client_context: None,
+            identity: None,
+            env_config: std::sync::Arc::new(crate::Config::default()),
+        }
+    }
+}
+
 impl Context {
     /// Create a new [Context] struct based on the fuction configuration
     /// and the incoming request data.


Test patch: