rust/tests/rustdoc-json/structs/plain_doc_hidden.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
399 B
Rust
Raw Normal View History

pub struct Demo {
pub x: i32,
#[doc(hidden)]
pub y: i32,
}
//@ set x = "$.index[*][?(@.name=='x')].id"
//@ !has "$.index[*][?(@.name=='y')].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