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