organic/src/wasm/radio_link.rs

34 lines
768 B
Rust
Raw Normal View History

use std::marker::PhantomData;
2023-12-25 11:51:39 -05:00
use organic::types::RadioLink;
use serde::Deserialize;
use serde::Serialize;
use super::macros::to_wasm;
use super::standard_properties::WasmStandardProperties;
use super::to_wasm::ToWasm;
use crate::wasm::to_wasm::ToWasmStandardProperties;
#[derive(Debug, Serialize, Deserialize)]
#[serde(tag = "ast_node")]
#[serde(rename = "org-data")]
2023-12-25 11:51:39 -05:00
pub(crate) struct WasmRadioLink<'s> {
standard_properties: WasmStandardProperties,
children: Vec<()>,
phantom: PhantomData<&'s ()>,
}
to_wasm!(
2023-12-25 11:51:39 -05:00
WasmRadioLink<'s>,
RadioLink<'s>,
wasm_context,
standard_properties,
{
2023-12-25 11:51:39 -05:00
Ok(WasmRadioLink {
standard_properties,
children: Vec::new(),
phantom: PhantomData,
})
}
);