pub enum JsDocTag {
Show 23 variants
Callback {
name: String,
doc: Option<String>,
},
Category {
doc: Option<String>,
},
Constructor,
Default {
value: String,
doc: Option<String>,
},
Deprecated {
doc: Option<String>,
},
Enum {
type_ref: String,
doc: Option<String>,
},
Example {
doc: Option<String>,
},
Extends {
type_ref: String,
doc: Option<String>,
},
Ignore,
Module,
Param {
name: String,
type_ref: Option<String>,
optional: bool,
default: Option<String>,
doc: Option<String>,
},
Public,
Private,
Property {
name: String,
type_ref: String,
doc: Option<String>,
},
Protected,
ReadOnly,
Return {
type_ref: Option<String>,
doc: Option<String>,
},
Tags {
tags: Vec<String>,
},
Template {
name: String,
doc: Option<String>,
},
This {
type_ref: String,
doc: Option<String>,
},
TypeDef {
name: String,
type_ref: String,
doc: Option<String>,
},
TypeRef {
type_ref: String,
doc: Option<String>,
},
Unsupported {
value: String,
},
}Variants§
Callback
@callback Predicate comment
Category
@category comment
Constructor
@constructor or @class
Default
@default {value} comment
Deprecated
@deprecated comment
Enum
@enum {type} comment
Example
Extends
@extends {type} comment
Ignore
@ignore
Module
@module
Param
Fields
@param, @arg or argument, in format of @param {type} name comment
or @param {type} [name=default] comment
or @param {type} [name] comment
Public
@public
Private
@private
Property
@property {type} name comment or @prop {type} name comment
Protected
@protected
ReadOnly
@readonly
Return
@return {type} comment or @returns {type} comment
Tags
Fields
@tags allow-read, allow-write
Template
@template T comment
This
@this {type} comment
TypeDef
@typedef {type} name comment
TypeRef
@type {type} comment
Unsupported
Trait Implementations§
source§impl<'de> Deserialize<'de> for JsDocTag
impl<'de> Deserialize<'de> for JsDocTag
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
source§impl PartialEq for JsDocTag
impl PartialEq for JsDocTag
impl Eq for JsDocTag
impl StructuralPartialEq for JsDocTag
Auto Trait Implementations§
impl RefUnwindSafe for JsDocTag
impl Send for JsDocTag
impl Sync for JsDocTag
impl Unpin for JsDocTag
impl UnwindSafe for JsDocTag
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.