2022-09-07 09:37:22 +01:00
|
|
|
pub struct Demo {
|
|
|
|
pub x: i32,
|
|
|
|
pub y: i32,
|
|
|
|
}
|
|
|
|
|
|
|
|
// @set x = "$.index[*][?(@.name=='x')].id"
|
|
|
|
// @set y = "$.index[*][?(@.name=='y')].id"
|
2023-05-22 18:17:52 +01:00
|
|
|
// @is "$.index[*][?(@.name=='Demo')].inner.struct.kind.plain.fields[0]" $x
|
|
|
|
// @is "$.index[*][?(@.name=='Demo')].inner.struct.kind.plain.fields[1]" $y
|
|
|
|
// @count "$.index[*][?(@.name=='Demo')].inner.struct.kind.plain.fields[*]" 2
|
|
|
|
// @is "$.index[*][?(@.name=='Demo')].inner.struct.kind.plain.fields_stripped" false
|