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
sourceimpl 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
sourceimpl<'de> Deserialize<'de> for DocNode
impl<'de> Deserialize<'de> for DocNode
sourcefn 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more