Struct rust_sam::LambdaEvent
source · pub struct LambdaEvent<T> {
pub payload: T,
pub context: Context,
}Expand description
Incoming Lambda request containing the event payload and context.
Fields§
§payload: TEvent payload.
context: ContextInvocation context.
Implementations§
source§impl<T> LambdaEvent<T>
impl<T> LambdaEvent<T>
sourcepub fn new(payload: T, context: Context) -> LambdaEvent<T>
pub fn new(payload: T, context: Context) -> LambdaEvent<T>
Creates a new Lambda request
sourcepub fn into_parts(self) -> (T, Context)
pub fn into_parts(self) -> (T, Context)
Split the Lambda event into its payload and context.
Trait Implementations§
source§impl<T> Clone for LambdaEvent<T>where
T: Clone,
impl<T> Clone for LambdaEvent<T>where
T: Clone,
source§fn clone(&self) -> LambdaEvent<T>
fn clone(&self) -> LambdaEvent<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more