This reverts commit 2a91dc1eb7215a762bd2204bc103ef172258d2d9. Also * Add back type defs and Any*Event enums * Move EventDeHelper and from_raw_json_value to lib make pub so event_enum! macro can use them and test. * Fix Any*Event enum deserialization error * Remove event_content_enum! macro and ruma-events-macros/src/content_enum.rs * Use serde's IgnoreAny to skip Unknown field's value * Clean up imports and test names for state_event
12 lines
380 B
Plaintext
12 lines
380 B
Plaintext
error: well-known matrix events have to start with `m.` found `not.a.path`
|
|
--> $DIR/08-enum-invalid-path.rs:13:9
|
|
|
|
|
13 | "not.a.path",
|
|
| ^^^^^^^^^^^^
|
|
|
|
error[E0433]: failed to resolve: could not find `not` in `ruma_events`
|
|
--> $DIR/08-enum-invalid-path.rs:6:9
|
|
|
|
|
6 | "m.not.a.path",
|
|
| ^^^^^^^^^^^^^^ could not find `not` in `ruma_events`
|