pub struct Entity {
pub title: Option<String>,
pub description: MarkdownString,
pub kind: String,
pub identity: Identity,
pub members: Vec<Entity>,
pub member_context: Option<String>,
pub language: String,
pub source: Source,
pub meta: Value,
}Fields§
§title: Option<String>The title for the entity. Usually the name of the class/function/module, etc.
description: MarkdownStringA description for the entity. Supports Markdown.
kind: StringThe type of the entity. E.g. function, class, module. Each language will have a different set of entities.
identity: IdentityThe identity of the entity: either its fully qualified name, or a reference to another entity via its fully qualified name.
E.g. a class declaration will have an identity of its fully qualified name, but a function’s return position will have an reference to another entity that describes its type.
members: Vec<Entity>Child entities. E.g. classes may contain functions, modules may have child modules, etc.
member_context: Option<String>What context the entity is in. E.g. a type may be describing a parameter to a function, or a return type.
language: StringThe language of the entity
source: SourceThe language of the entity
meta: ValueArbitrary metadata different types of entities need to store