Struct rustdoc_json_types::ItemSummary
source · pub struct ItemSummary {
pub crate_id: u32,
pub path: Vec<String>,
pub kind: ItemKind,
}
Expand description
Information about an external (not defined in the local crate) Item
.
For external 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
).
Note that items can appear in multiple paths, and the one chosen is implementation
defined. Currently, this is the full path to where the item was defined. Eg
String
is currently ["alloc", "string", "String"]
and HashMap
is ["std", "collections", "hash", "map", "HashMap"]
, but this is subject to change.
kind: ItemKind
Whether this item is a struct, trait, macro, etc.
Trait Implementations§
source§impl Clone for ItemSummary
impl Clone for ItemSummary
source§fn clone(&self) -> ItemSummary
fn clone(&self) -> ItemSummary
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ItemSummary
impl Debug for ItemSummary
source§impl<'de> Deserialize<'de> for ItemSummary
impl<'de> Deserialize<'de> for ItemSummary
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
source§impl Hash for ItemSummary
impl Hash for ItemSummary
source§impl PartialEq for ItemSummary
impl PartialEq for ItemSummary
source§impl Serialize for ItemSummary
impl Serialize for ItemSummary
impl Eq for ItemSummary
impl StructuralPartialEq for ItemSummary
Auto Trait Implementations§
impl Freeze for ItemSummary
impl RefUnwindSafe for ItemSummary
impl Send for ItemSummary
impl Sync for ItemSummary
impl Unpin for ItemSummary
impl UnwindSafe for ItemSummary
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 32 bytes