momento_functions_wit/function_web.rs
1wit_bindgen::generate!({
2 world: "momento:functions/web-function",
3 path: ["wit/host/", "wit/"],
4 generate_all,
5 default_bindings_module: "momento_functions_wit::function_web",
6 export_macro_name: "export_web_function",
7 pub_export_macro: true,
8});
9
10impl From<(String, String)>
11 for crate::function_web::momento::functions::web_function_support::Header
12{
13 fn from((name, value): (String, String)) -> Self {
14 Self { name, value }
15 }
16}