pub trait Config {
const INCLUDE_TS_FIELDS: bool;
fn new() -> Self;
}
pub struct ConfigTS;
impl Config for ConfigTS {
const INCLUDE_TS_FIELDS: bool = true;
#[inline(always)]
fn new() -> Self {
Self
}
}
pub struct ConfigJS;
impl Config for ConfigJS {
const INCLUDE_TS_FIELDS: bool = false;
#[inline(always)]
fn new() -> Self {
Self
}
}