error[E0277]: `Receipt` does not declare where it is published
--> tests/ui/reply_without_outgoing.rs:19:36
|
19 | async fn confirm(order: &Order) -> Receipt {
| ^^^^^^^ unsatisfied trait bound
|
help: the trait `ruststream::runtime::ReplyDestination` is not implemented for `Receipt`
--> tests/ui/reply_without_outgoing.rs:14:1
|
14 | struct Receipt {
| ^^^^^^^^^^^^^^
= note: derive `Outgoing` on the reply type: `#[outgoing(name = "orders.done")]` fixes the destination, and a derive without a name is published where the mount site says (`reply("..")` on the attribute, `.to("..")` on the chain). A name template has no placeholders to bind on the reply path.
note: required by a bound in `ruststream::runtime::reply_destination`
--> src/runtime/handle/reply.rs
|
| pub fn reply_destination<R: ReplyDestination>(default: &'static str) -> ResolvedDest {
| ^^^^^^^^^^^^^^^^ required by this bound in `reply_destination`