You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/serde.rs
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -2,10 +2,10 @@
2
2
//!
3
3
//! Restate sends data over the network for storing state, journaling actions, awakeables, etc.
4
4
//!
5
-
//! Therefore, all data structures need to have serializers and deserializers.
6
-
//!
7
-
//! You can use [Rust Serde](https://serde.rs/) for this.
8
-
//! Either [use derive](https://serde.rs/derive.html) or implement the [`Serialize` and `Deserialize` traits](https://serde.rs/custom-serialization.html).
5
+
//! Therefore, the types of the values that are stored, need to either:
6
+
//! - be a primitive type
7
+
//! - use a wrapper type [`Json`] for using [`serde-json`](https://serde.rs/)
8
+
//! - have the [`Serialize`] and [`Deserialize`] trait implemented
0 commit comments