pub trait CrossLanguageSafe: Serialize + DeserializeOwned { }Expand description
Marker trait for types that can safely cross language boundaries.
Types implementing this trait must serialize to/from JSON using only universally supported primitives: bool, number, string, array, object, null. This excludes language-specific types (Python objects, Rust enums with data, etc.).
Used as a bound on ForeignTask params and results to provide
compile-time enforcement that cross-language calls use compatible types.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.