2022-09-10 01:30:47 +01:00
|
|
|
// @is "$.index[*][?(@.name=='EnumStruct')].visibility" \"public\"
|
2023-05-22 18:17:52 +01:00
|
|
|
// @has "$.index[*][?(@.name=='EnumStruct')].inner.enum"
|
2021-08-27 14:58:50 +02:00
|
|
|
pub enum EnumStruct {
|
2023-05-22 18:17:52 +01:00
|
|
|
// @has "$.index[*][?(@.name=='x')].inner.struct_field"
|
2023-01-01 18:53:50 +00:00
|
|
|
// @set x = "$.index[*][?(@.name=='x')].id"
|
2023-05-22 18:17:52 +01:00
|
|
|
// @has "$.index[*][?(@.name=='y')].inner.struct_field"
|
2023-01-01 18:53:50 +00:00
|
|
|
// @set y = "$.index[*][?(@.name=='y')].id"
|
2023-05-22 18:17:52 +01:00
|
|
|
// @ismany "$.index[*][?(@.name=='VariantS')].inner.variant.kind.struct.fields[*]" $x $y
|
2023-01-01 18:53:50 +00:00
|
|
|
VariantS { x: u32, y: String },
|
2021-08-27 14:58:50 +02:00
|
|
|
}
|