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
impl Copy for LambdaEvent
Source§impl Debug for LambdaEvent
impl Debug for LambdaEvent
impl Eq for LambdaEvent
Source§impl PartialEq for LambdaEvent
impl PartialEq for LambdaEvent
impl StructuralPartialEq for LambdaEvent
Auto Trait Implementations§
impl Forget for LambdaEvent
impl Freeze for LambdaEvent
impl Move 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