2022-09-05 16:17:50 -05:00
|
|
|
pub enum Foo {
|
|
|
|
Variant {
|
|
|
|
#[doc(hidden)]
|
|
|
|
a: i32,
|
2024-07-19 09:50:47 -05:00
|
|
|
//@ set b = "$.index[*][?(@.name=='b')].id"
|
2022-09-05 16:17:50 -05:00
|
|
|
b: i32,
|
|
|
|
#[doc(hidden)]
|
|
|
|
x: i32,
|
2024-07-19 09:50:47 -05:00
|
|
|
//@ set y = "$.index[*][?(@.name=='y')].id"
|
2022-09-05 16:17:50 -05:00
|
|
|
y: i32,
|
|
|
|
},
|
2024-08-04 18:44:35 -05:00
|
|
|
//@ is "$.index[*][?(@.name=='Variant')].inner.variant.kind.struct.has_stripped_fields" true
|
2024-07-19 09:50:47 -05:00
|
|
|
//@ is "$.index[*][?(@.name=='Variant')].inner.variant.kind.struct.fields[0]" $b
|
|
|
|
//@ is "$.index[*][?(@.name=='Variant')].inner.variant.kind.struct.fields[1]" $y
|
|
|
|
//@ count "$.index[*][?(@.name=='Variant')].inner.variant.kind.struct.fields[*]" 2
|
2022-09-05 16:17:50 -05:00
|
|
|
}
|