Struct swc_babel_ast::ClassProperty [−][src]
pub struct ClassProperty {Show 13 fields
pub base: BaseNode,
pub key: ObjectKey,
pub value: Option<Box<Expression>>,
pub type_annotation: Option<Box<TypeAnnotOrNoop>>,
pub decorators: Option<Vec<Decorator>>,
pub computed: Option<bool>,
pub is_static: Option<bool>,
pub is_abstract: Option<bool>,
pub accessibility: Option<Access>,
pub declare: Option<bool>,
pub definite: Option<bool>,
pub optional: Option<bool>,
pub readonly: Option<bool>,
}
Fields
base: BaseNode
key: ObjectKey
value: Option<Box<Expression>>
type_annotation: Option<Box<TypeAnnotOrNoop>>
decorators: Option<Vec<Decorator>>
computed: Option<bool>
is_static: Option<bool>
is_abstract: Option<bool>
accessibility: Option<Access>
declare: Option<bool>
definite: Option<bool>
optional: Option<bool>
readonly: Option<bool>
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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for ClassProperty
impl Send for ClassProperty
impl Sync for ClassProperty
impl Unpin for ClassProperty
impl UnwindSafe for ClassProperty
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