error[E0277]: the headers of this publish do not match the message's `WithHeaders<PlacedMeta>` contract
--> tests/ui/publish_template_missing_headers.rs:34:10
|
34 | .publish()
| ^^^^^^^ the trait `SatisfiesContract<WithHeaders<PlacedMeta>>` is not implemented for `HeadersUnset`
|
= note: a message declaring `#[outgoing(headers = Meta)]` is published as `.message(&value).with_headers(&meta)`; one declaring no contract takes no contract value (an arbitrary map still travels through `.with_headers(headers)`)
help: the trait `SatisfiesContract<WithHeaders<PlacedMeta>>` is not implemented for `HeadersUnset`
but trait `SatisfiesContract<NoHeaders>` is implemented for it
--> src/runtime/publish/builder.rs
|
| impl SatisfiesContract<NoHeaders> for HeadersUnset {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= help: for that trait implementation, expected `NoHeaders`, found `WithHeaders<PlacedMeta>`
= note: required for `PublishBuilder<&Slot<Events, __RsOutW0, __RsOutE0, __RsOutP0, Placed>, MessageBody<'_, Placed>, &__RsOutE0, HeadersUnset, NameTemplate>` to implement `PublishAt`
note: required by a bound in `To::<Cont, S0>::publish`
--> tests/ui/publish_template_missing_headers.rs:15:10
|
15 | #[derive(Outgoing, Serialize)]
| ^^^^^^^^ required by this bound in `To::<Cont, S0>::publish`
= note: this error originates in the derive macro `Outgoing` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: the headers of this publish do not match the message's `WithHeaders<PlacedMeta>` contract
--> tests/ui/publish_template_missing_headers.rs:30:13
|
30 | let _ = out
| _____________^
31 | | .message(&Placed { id: order.id })
32 | | .to()
33 | | .tenant("acme")
34 | | .publish()
| |__________________^ the trait `SatisfiesContract<WithHeaders<PlacedMeta>>` is not implemented for `HeadersUnset`
|
= note: a message declaring `#[outgoing(headers = Meta)]` is published as `.message(&value).with_headers(&meta)`; one declaring no contract takes no contract value (an arbitrary map still travels through `.with_headers(headers)`)
help: the trait `SatisfiesContract<WithHeaders<PlacedMeta>>` is not implemented for `HeadersUnset`
but trait `SatisfiesContract<NoHeaders>` is implemented for it
--> src/runtime/publish/builder.rs
|
| impl SatisfiesContract<NoHeaders> for HeadersUnset {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= help: for that trait implementation, expected `NoHeaders`, found `WithHeaders<PlacedMeta>`
= note: required for `PublishBuilder<&Slot<Events, __RsOutW0, __RsOutE0, __RsOutP0, Placed>, MessageBody<'_, Placed>, &__RsOutE0, HeadersUnset, NameTemplate>` to implement `PublishAt`
note: required by a bound in `To::<Cont, S0>::publish`
--> tests/ui/publish_template_missing_headers.rs:15:10
|
15 | #[derive(Outgoing, Serialize)]
| ^^^^^^^^ required by this bound in `To::<Cont, S0>::publish`
= note: this error originates in the derive macro `Outgoing` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: the headers of this publish do not match the message's `WithHeaders<PlacedMeta>` contract
--> tests/ui/publish_template_missing_headers.rs:35:10
|
35 | .await;
| ^^^^^ the trait `SatisfiesContract<WithHeaders<PlacedMeta>>` is not implemented for `HeadersUnset`
|
= note: a message declaring `#[outgoing(headers = Meta)]` is published as `.message(&value).with_headers(&meta)`; one declaring no contract takes no contract value (an arbitrary map still travels through `.with_headers(headers)`)
help: the trait `SatisfiesContract<WithHeaders<PlacedMeta>>` is not implemented for `HeadersUnset`
but trait `SatisfiesContract<NoHeaders>` is implemented for it
--> src/runtime/publish/builder.rs
|
| impl SatisfiesContract<NoHeaders> for HeadersUnset {}
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
= help: for that trait implementation, expected `NoHeaders`, found `WithHeaders<PlacedMeta>`
= note: required for `PublishBuilder<&Slot<Events, __RsOutW0, __RsOutE0, __RsOutP0, Placed>, MessageBody<'_, Placed>, &__RsOutE0, HeadersUnset, NameTemplate>` to implement `PublishAt`
note: required by a bound in `To::<Cont, S0>::publish`
--> tests/ui/publish_template_missing_headers.rs:15:10
|
15 | #[derive(Outgoing, Serialize)]
| ^^^^^^^^ required by this bound in `To::<Cont, S0>::publish`
= note: this error originates in the derive macro `Outgoing` (in Nightly builds, run with -Z macro-backtrace for more info)