We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b4914f8 commit 6e03ba7Copy full SHA for 6e03ba7
lambda-runtime/src/types.rs
@@ -94,6 +94,20 @@ pub struct Context {
94
pub env_config: RefConfig,
95
}
96
97
+impl Default for Context {
98
+ fn default() -> Context {
99
+ Context {
100
+ request_id: "".to_owned(),
101
+ deadline: 0,
102
+ invoked_function_arn: "".to_owned(),
103
+ xray_trace_id: None,
104
+ client_context: None,
105
+ identity: None,
106
+ env_config: std::sync::Arc::new(crate::Config::default()),
107
+ }
108
109
+}
110
+
111
impl Context {
112
/// Create a new [Context] struct based on the fuction configuration
113
/// and the incoming request data.
0 commit comments