Attribute Macro lando_attr::lando
source · #[lando]
Expand description
Implements the lando
attribute.
This attribute is used to turn a Rust function into an AWS Gateway
triggerable lambda. In lambda you can refer to these by path with
lib{crate_name}.{fn_name}
Examples
ⓘ
#[macro_use] extern crate lando;
use lando::{LambdaContext, Request, Response};
#[lando]
pub fn example<'a>(_: Request, _: LambdaContext) -> Response<&'a str> {
Ok("hello lambda")
}