[][src]Struct rustdoc_types::ItemSummary

pub struct ItemSummary {
    pub crate_id: u32,
    pub path: Vec<String>,
    pub kind: ItemKind,
}

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.

Fields

crate_id: u32

Can be used to look up the name and html_root_url of the crate this item came from in the external_crates map.

path: Vec<String>

The list of path components for the fully qualified path of this item (e.g. ["std", "io", "lazy", "Lazy"] for std::io::lazy::Lazy).

kind: ItemKind

Whether this item is a struct, trait, macro, etc.

Trait Implementations

impl Clone for ItemSummary[src]

impl Debug for ItemSummary[src]

impl<'de> Deserialize<'de> for ItemSummary[src]

impl PartialEq<ItemSummary> for ItemSummary[src]

impl Serialize for ItemSummary[src]

impl StructuralPartialEq for ItemSummary[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.