pub struct FieldMapping {
pub node_type: &'static str,
pub reluxscript: &'static str,
pub babel: &'static str,
pub swc: &'static str,
pub swc_type: &'static str,
pub needs_box_unwrap: bool,
pub optional: bool,
pub read_conversion: Option<&'static str>,
pub write_conversion: Option<&'static str>,
}Expand description
Field mapping for a specific node type
Fields§
§node_type: &'static strNode type this field belongs to
reluxscript: &'static strReluxScript field name
babel: &'static strBabel field access
swc: &'static strSWC field access (may include conversions)
swc_type: &'static strSWC type of this field
needs_box_unwrap: boolWhether this field needs Box unwrapping in SWC
optional: boolWhether this field is optional
read_conversion: Option<&'static str>Conversion needed when reading (e.g., JsWord → String)
write_conversion: Option<&'static str>Conversion needed when writing (e.g., String → JsWord)
Trait Implementations§
Source§impl Clone for FieldMapping
impl Clone for FieldMapping
Source§fn clone(&self) -> FieldMapping
fn clone(&self) -> FieldMapping
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for FieldMapping
impl RefUnwindSafe for FieldMapping
impl Send for FieldMapping
impl Sync for FieldMapping
impl Unpin for FieldMapping
impl UnwindSafe for FieldMapping
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more