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