diff --git a/guide/src/qs_14.md b/guide/src/qs_14.md index 72827e4e..f7dd6e7f 100644 --- a/guide/src/qs_14.md +++ b/guide/src/qs_14.md @@ -24,11 +24,13 @@ impl Actor for DbExecutor { This is definition of our actor. Now we need to define *create user* message and response. ```rust,ignore -#[derive(Message)] -#[rtype(User, Error)] struct CreateUser { name: String, } + +impl Message for CreateUser { + type Result = Result; +} ``` We can send `CreateUser` message to `DbExecutor` actor, and as result we get