pub trait UseInJsCode { // Required method fn serialize_to(&self, buf: &mut Formatter<'_>) -> Result; }
For values that can be serialized to JS code:
serde::Serialize
This trait is used by ToJs.