pub struct DocNode {Show 13 fields
pub kind: DocNodeKind,
pub name: String,
pub location: Location,
pub declaration_kind: DeclarationKind,
pub js_doc: JsDoc,
pub function_def: Option<FunctionDef>,
pub variable_def: Option<VariableDef>,
pub enum_def: Option<EnumDef>,
pub class_def: Option<ClassDef>,
pub type_alias_def: Option<TypeAliasDef>,
pub namespace_def: Option<NamespaceDef>,
pub interface_def: Option<InterfaceDef>,
pub import_def: Option<ImportDef>,
}
Fields
kind: DocNodeKind
name: String
location: Location
declaration_kind: DeclarationKind
js_doc: JsDoc
function_def: Option<FunctionDef>
variable_def: Option<VariableDef>
enum_def: Option<EnumDef>
class_def: Option<ClassDef>
type_alias_def: Option<TypeAliasDef>
namespace_def: Option<NamespaceDef>
interface_def: Option<InterfaceDef>
import_def: Option<ImportDef>
Implementations
pub fn function(
name: String,
location: Location,
declaration_kind: DeclarationKind,
js_doc: JsDoc,
fn_def: FunctionDef
) -> Self
pub fn variable(
name: String,
location: Location,
declaration_kind: DeclarationKind,
js_doc: JsDoc,
var_def: VariableDef
) -> Self
pub fn enum(
name: String,
location: Location,
declaration_kind: DeclarationKind,
js_doc: JsDoc,
enum_def: EnumDef
) -> Self
pub fn class(
name: String,
location: Location,
declaration_kind: DeclarationKind,
js_doc: JsDoc,
class_def: ClassDef
) -> Self
pub fn type_alias(
name: String,
location: Location,
declaration_kind: DeclarationKind,
js_doc: JsDoc,
type_alias_def: TypeAliasDef
) -> Self
pub fn namespace(
name: String,
location: Location,
declaration_kind: DeclarationKind,
js_doc: JsDoc,
namespace_def: NamespaceDef
) -> Self
Trait Implementations
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for DocNode
impl UnwindSafe for DocNode
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more