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§
source§impl DocNode
impl DocNode
pub fn module_doc(location: Location, js_doc: JsDoc) -> Self
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
pub fn interface( name: String, location: Location, declaration_kind: DeclarationKind, js_doc: JsDoc, interface_def: InterfaceDef ) -> Self
pub fn import( name: String, location: Location, js_doc: JsDoc, import_def: ImportDef ) -> Self
Trait Implementations§
source§impl<'de> Deserialize<'de> for DocNode
impl<'de> Deserialize<'de> for DocNode
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for DocNode
impl Send for DocNode
impl Sync for DocNode
impl Unpin for DocNode
impl UnwindSafe for DocNode
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
Mutably borrows from an owned value. Read more