about summary refs log tree commit diff
path: root/tests/rustdoc-json/structs/plain_pub_priv.rs
blob: 91079a30d42ea372959c7d9dc075b2f68ffb4271 (plain)
1
2
3
4
5
6
7
8
9
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