[][src]Crate rustdoc_types

Rustdoc's JSON output interface

These types are the public API exposed through the --output-format json flag. The Crate struct is the root of the JSON blob and all other items are contained within.

Structs

Constant
Crate

A Crate is the root of the emitted JSON blob. It contains all type/documentation information about the language items in the local crate, as well as info about external items to allow tools to find or link to them.

Deprecation
Enum
ExternalCrate
FnDecl
Function
FunctionPointer
GenericParamDef
Generics
Id
Impl
Import
Item
ItemSummary

For external (not defined in the local crate) items, you don't get the same level of information. This struct should contain enough to generate a link/reference to the item in question, or can be used by a tool that takes the json output of multiple crates to find the actual item definition with all the relevant info.

Method
Module
OpaqueTy
ProcMacro
Span
Static
Struct
Trait
TraitAlias
TypeBinding
Typedef

Enums

GenericArg
GenericArgs
GenericBound
GenericParamDefKind
ItemEnum
ItemKind
MacroKind
StructType
TraitBoundModifier
Type
TypeBindingKind
Variant
Visibility
WherePredicate