mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-26 13:52:40 +00:00
Co-authored-by: Derek Bailey <derekbailey@google.com>
This commit is contained in:
27
tests/rust_namer_test.fbs
Normal file
27
tests/rust_namer_test.fbs
Normal file
@@ -0,0 +1,27 @@
|
||||
namespace RustNamerTest;
|
||||
|
||||
table FieldTable {}
|
||||
|
||||
union FieldUnion {
|
||||
f :FieldTable (id: 0),
|
||||
}
|
||||
|
||||
table RootTable {
|
||||
field42 :FieldUnion (id: 1);
|
||||
}
|
||||
|
||||
table PlayerStatEvent {}
|
||||
table PlayerSpectate {}
|
||||
table PlayerInputChange {}
|
||||
|
||||
union GameMessage
|
||||
{
|
||||
PlayerStatEvent,
|
||||
PlayerSpectate,
|
||||
PlayerInputChange
|
||||
}
|
||||
|
||||
table GameMessageWrapper
|
||||
{
|
||||
Message:GameMessage;
|
||||
}
|
||||
Reference in New Issue
Block a user