You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`crate_num` | int | A number corresponding to the crate this Item is from. Used as an key to the `extern_crates` map in [Crate](#Crate). A value of zero represents an Item from the local crate, any other number means that this Item is external.
244
+
`crate_id` | int | A number corresponding to the crate this Item is from. Used as an key to the `extern_crates` map in [Crate](#Crate). A value of zero represents an Item from the local crate, any other number means that this Item is external.
245
245
`path` | [String] | The fully qualified path (e.g. `["std", "io", "lazy", "Lazy"]` for `std::io::lazy::Lazy`) of this Item.
246
246
`kind` | String | What type of Item this is (see [Item](#Item)).
247
247
@@ -253,18 +253,27 @@ and leaves kind-specific details (like function args or enum variants) to the `i
`crate_num` | int | A number corresponding to the crate this Item is from. Used as an key to the `extern_crates` map in [Crate](#Crate). A value of zero represents an Item from the local crate, any other number means that this Item is external.
256
+
`crate_id` | int | A number corresponding to the crate this Item is from. Used as an key to the `extern_crates` map in [Crate](#Crate). A value of zero represents an Item from the local crate, any other number means that this Item is external.
257
257
`name` | String | The name of the Item, if present. Some Items, like impl blocks, do not have names.
258
258
`span` | [Span](#Span) | (*Optional*) The source location of this Item.
259
-
`visibility` | String | `"default"`, `"public"`, `"crate"`, or `"restricted"` (`pub(path)`).
260
-
`restricted_path` | String | (*Optional*) If `visibility == "restricted"`, this field contains the path that it's restricted to.
259
+
`visibility` | String | `"default"`, `"public"`, or `"crate"`[\*](#restricted-visibility).
261
260
`docs` | String | The extracted documentation text from the Item.
262
261
`links` | Map<String, [ID](#ID)> | A map of intra-doc link names to the IDs of the items they resolve to. For example if the `docs` string contained `"see [HashMap][std::collections::HashMap] for more details"` then `links` would have `"std::collections::HashMap": "<some id>"`.
263
262
`attrs` | [String] | The [unstable](#Unstable) stringified attributes (other than doc comments) on the Item (e.g. `["#[inline]", "#[test]"]`).
264
263
`deprecation` | [Deprecation](#Deprecation) | (*Optional*) Information about the Item's deprecation, if present.
265
264
`kind` | String | The kind of Item this is. Determines what fields are in `inner`.
266
265
`inner` | Object | The type-specific fields describing this Item. Check the `kind` field to determine what's available.
267
266
267
+
### Restricted visibility
268
+
When using `--document-private-items`, `pub(in path)` items can appear in the output in which case
269
+
the visibility field will be an Object instead of a string. It will contain the single key
0 commit comments