Implement statistics cookie.

This commit is contained in:
Tom Alexander 2023-12-29 20:21:51 -05:00
parent c0e879dc1e
commit 34b3e4fa7b
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE

View File

@ -13,6 +13,7 @@ use crate::wasm::to_wasm::ToWasmStandardProperties;
pub struct WasmStatisticsCookie {
#[serde(flatten)]
pub(crate) additional_properties: AdditionalProperties,
pub(crate) value: String,
}
to_wasm!(
@ -21,12 +22,13 @@ to_wasm!(
original,
wasm_context,
{ WasmAstNode::StatisticsCookie(original) },
{ "TODO".into() },
{ "statistics-cookie".into() },
{
Ok((
Vec::new(),
WasmStatisticsCookie {
additional_properties: AdditionalProperties::default(),
value: original.value.to_owned(),
},
))
}