mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
10 lines
335 B
Rust
10 lines
335 B
Rust
pub struct Demo {
|
|
pub x: i32,
|
|
y: i32,
|
|
}
|
|
|
|
//@ set x = "$.index[*][?(@.name=='x')].id"
|
|
//@ is "$.index[*][?(@.name=='Demo')].inner.struct.kind.plain.fields[0]" $x
|
|
//@ count "$.index[*][?(@.name=='Demo')].inner.struct.kind.plain.fields[*]" 1
|
|
//@ is "$.index[*][?(@.name=='Demo')].inner.struct.kind.plain.has_stripped_fields" true
|