pub enum LambdaEvent {
Http,
Sqs,
Unknown,
}Expand description
Coarse Lambda event-shape discriminator returned by
classify_event.
Adopters pattern-match on this in their own
lambda_runtime::run<serde_json::Value> service function and
dispatch each arm. The framework’s own LambdaA2aHandler::run,
LambdaA2aHandler::run_http_only,
LambdaA2aHandler::run_http_and_sqs, and
LambdaA2aHandler::run_sqs_only use this internally.
Variants§
Http
HTTP event (API Gateway REST, HTTP API, Function URL, ALB).
Sqs
SQS trigger event from an event source mapping.
Unknown
Unrecognised shape (DynamoDB stream, EventBridge scheduler, custom invocation payloads, etc.). Adopter-owned.
Trait Implementations§
Source§impl Clone for LambdaEvent
impl Clone for LambdaEvent
Source§fn clone(&self) -> LambdaEvent
fn clone(&self) -> LambdaEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LambdaEvent
impl Debug for LambdaEvent
Source§impl PartialEq for LambdaEvent
impl PartialEq for LambdaEvent
Source§fn eq(&self, other: &LambdaEvent) -> bool
fn eq(&self, other: &LambdaEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for LambdaEvent
impl Eq for LambdaEvent
impl StructuralPartialEq for LambdaEvent
Auto Trait Implementations§
impl Freeze for LambdaEvent
impl RefUnwindSafe for LambdaEvent
impl Send for LambdaEvent
impl Sync for LambdaEvent
impl Unpin for LambdaEvent
impl UnsafeUnpin for LambdaEvent
impl UnwindSafe for LambdaEvent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more