lib/grammar/ast/test/
mod.rs

1pub mod address;
2pub mod allof;
3pub mod anyof;
4pub mod boolean;
5pub mod envelope;
6pub mod exists;
7pub mod header;
8pub mod size;
9
10use serde::Serialize;
11
12pub use {
13    address::TestAddress,
14    allof::TestAllof,
15    anyof::TestAnyof,
16    boolean::{TestFalse, TestTrue},
17    envelope::TestEnvelope,
18    exists::TestExists,
19    header::TestHeader,
20    size::TestSize,
21};
22
23#[derive(Debug, Clone, Eq, PartialEq, Serialize)]
24#[serde(untagged)]
25pub enum Test {
26    TestAddress(TestAddress),
27    TestAllof(TestAllof),
28    TestAnyof(TestAnyof),
29    TestEnvelope(TestEnvelope),
30    TestExists(TestExists),
31    TestFalse(TestFalse),
32    TestHeader(TestHeader),
33    TestSize(TestSize),
34    TestTrue(TestTrue),
35}