OxL Reference

9.1 Serializable

  • data and enum automatically implement Serializable if all their fields are serialisable.
  • Serialisable: primitives, str, bytes, collections and tuples of serialisable types, T?, unions of serialisable types, distinct and refined types, time types, ActorRef<A> (as an address), Shared<T> (as T), secret<T> (with the restrictions of §9.3).
  • Not serialisable: borrows, Rc, Task, stream, iter, functions, Chan. Using them in an rpc, in a persisted actor field or in a topic is a compile error.

not-serializable

Source: docs/spec/oxl-standard.en.md