Skip to content

Commit 265434d

Browse files
committed
Feedback
1 parent 470d732 commit 265434d

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

src/context/mod.rs

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -615,7 +615,7 @@ impl<'ctx, CTX: private::SealedContext<'ctx>> ContextClient<'ctx> for CTX {}
615615
/// # }
616616
/// ```
617617
///
618-
/// You can return any payload that implements the `serde::Serialize` and `serde::Deserialize` traits ([see serialization docs][crate::serde]).
618+
/// For more info about serialization of the payload, see [crate::serde]
619619
///
620620
/// When running on Function-as-a-Service platforms, such as AWS Lambda, Restate suspends the handler while waiting for the awakeable to be completed.
621621
/// Since you only pay for the time that the handler is actually running, you don't pay while waiting for the external process to return.
@@ -674,7 +674,7 @@ pub trait ContextSideEffects<'ctx>: private::SealedContext<'ctx> {
674674
/// You cannot use the Restate context within `ctx.run`.
675675
/// This includes actions such as getting state, calling another service, and nesting other journaled actions.
676676
///
677-
/// You can store any result value that implements the `Serialize` and `Deserialize` trait ([see serialization docs][crate::serde]).
677+
/// For more info about serialization of the return values, see [crate::serde].
678678
///
679679
/// **Caution: Immediately await journaled actions:**
680680
/// Always immediately await `ctx.run`, before doing any other context calls.
@@ -778,13 +778,12 @@ impl<'ctx, CTX: private::SealedContext<'ctx>> ContextSideEffects<'ctx> for CTX {
778778
/// # }
779779
/// ```
780780
///
781+
/// For more info about serialization, see [crate::serde]
782+
///
781783
/// ### Command-line introspection
782784
/// You can inspect and edit the K/V state stored in Restate via `psql` and the CLI.
783785
/// Have a look at the [introspection docs](https://docs.restate.dev//operate/introspection#inspecting-application-state) for more information.
784786
///
785-
/// ### Serializing state
786-
/// You can store any type of value that that implements the `serde::Serialize` and `serde::Deserialize` traits ([see serialization docs][crate::serde]).
787-
///
788787
pub trait ContextReadState<'ctx>: private::SealedContext<'ctx> {
789788
/// Get state
790789
fn get<T: Deserialize + 'static>(
@@ -841,13 +840,12 @@ impl<'ctx, CTX: private::SealedContext<'ctx> + private::SealedCanReadState> Cont
841840
/// # }
842841
/// ```
843842
///
843+
/// For more info about serialization, see [crate::serde]
844+
///
844845
/// ## Command-line introspection
845846
/// You can inspect and edit the K/V state stored in Restate via `psql` and the CLI.
846847
/// Have a look at the [introspection docs](https://docs.restate.dev//operate/introspection#inspecting-application-state) for more information.
847848
///
848-
/// ### Serializing state
849-
/// You can store any type of value that that implements the `serde::Serialize` and `serde::Deserialize` traits ([see serialization docs][crate::serde]).
850-
///
851849
pub trait ContextWriteState<'ctx>: private::SealedContext<'ctx> {
852850
/// Set state
853851
fn set<T: Serialize + 'static>(&self, key: &str, t: T) {

0 commit comments

Comments
 (0)