1
0
Fork 0
ruma/crates/ruma-events/tests/it
Kévin Commaille 31bd360db8 events: Prevent hidden _Custom variant types to be deserialized
To prevent users from constructing them.

We also change some methods to access the custom data to work with all
variants, otherwise they might break when new variants are added.
2026-04-25 15:26:46 +02:00
..
ui Handle trybuild error output changes 2026-04-18 18:16:21 +02:00
audio.rs events: Use strong map type for EncryptedFile hashes 2026-03-24 19:50:46 +01:00
beacon.rs events: Use assert_to_canonical_json_eq! in tests 2026-01-29 09:04:26 +01:00
beacon_info.rs events: Use assert_to_canonical_json_eq! in tests 2026-01-29 09:04:26 +01:00
call.rs Use owned_id! macro instead of using ToOwned manually 2026-02-20 19:34:32 +01:00
encrypted.rs events: Prevent hidden _Custom variant types to be deserialized 2026-04-25 15:26:46 +02:00
enums.rs events: Remove support for m.room.aliases 2026-04-04 14:47:38 +02:00
ephemeral_event.rs events: Use assert_to_canonical_json_eq! in tests 2026-01-29 09:04:26 +01:00
event.rs events: Add default_on_error field attribute to Event derive macro 2025-10-21 15:30:06 +02:00
event_content.rs events: Fix compatibility of event_enum! with EventContent for types which are in both account data types 2025-06-19 10:03:42 +02:00
event_enums.rs Update style edition to 2024 2025-11-09 13:57:49 +01:00
file.rs events: Use strong map type for EncryptedFile hashes 2026-03-24 19:50:46 +01:00
image.rs events: Use strong map type for EncryptedFile hashes 2026-03-24 19:50:46 +01:00
initial_state.rs events: Make name required in RoomNameEventContent 2023-09-18 15:05:26 +02:00
location.rs events: Make Reply relation variant non-exhaustive 2026-03-02 20:35:21 +01:00
main.rs events: Remove pdu module 2025-06-17 10:32:22 +02:00
message.rs events: Make Reply relation variant non-exhaustive 2026-03-02 20:35:21 +01:00
poll.rs events: Use assert_to_canonical_json_eq! in tests 2026-01-29 09:04:26 +01:00
redacted.rs events: Remove support for m.room.aliases 2026-04-04 14:47:38 +02:00
redaction.rs events: Use assert_to_canonical_json_eq! in tests 2026-01-29 09:04:26 +01:00
relations.rs events: Prevent hidden _Custom variant types to be deserialized 2026-04-25 15:26:46 +02:00
room_message.rs events: Prevent hidden _Custom variant types to be deserialized 2026-04-25 15:26:46 +02:00
state_event.rs events: Remove support for m.room.aliases 2026-04-04 14:47:38 +02:00
sticker.rs Use owned_id! macro instead of using ToOwned manually 2026-02-20 19:34:32 +01:00
stripped.rs events: Use assert_to_canonical_json_eq! in tests 2026-01-29 09:04:26 +01:00
to_device.rs events: Use assert_to_canonical_json_eq! in tests 2026-01-29 09:04:26 +01:00
video.rs events: Use strong map type for EncryptedFile hashes 2026-03-24 19:50:46 +01:00
voice.rs events: Make Reply relation variant non-exhaustive 2026-03-02 20:35:21 +01:00
without_relation.rs Refactor away a couple more assert_matches! with bindings 2026-03-29 16:00:17 +02:00