about summary refs log tree commit diff
path: root/tests/rustdoc-json/structs/plain_all_pub.rs
blob: 67d2a4a7a8cf8b55923cfbcfeb17a0b975f138c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
pub struct Demo {
    pub x: i32,
    pub y: i32,
}

//@ set x = "$.index[*][?(@.name=='x')].id"
//@ set y = "$.index[*][?(@.name=='y')].id"
//@ 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.has_stripped_fields" false