runtime_emulator_types/
types.rs

1use lambda_runtime::Context;
2use serde::{Deserialize, Serialize};
3use serde_json::Value;
4
5/// A local implementation of lambda_runtime::LambdaEvent<T>.
6/// It replicates LambdaEvent<Value> because we need Ser/Deser traits not implemented for LambdaEvent.
7#[derive(Deserialize, Debug, Serialize)]
8pub struct RequestPayload {
9    pub event: Value, // using Value to extract some fields and pass the rest to the runtime
10    pub ctx: Context,
11}