pub struct EsSyntax {
pub jsx: bool,
pub fn_bind: bool,
pub decorators: bool,
pub decorators_before_export: bool,
pub export_default_from: bool,
pub import_attributes: bool,
pub allow_super_outside_method: bool,
pub allow_return_outside_function: bool,
pub auto_accessors: bool,
pub explicit_resource_management: bool,
}Fields§
§jsx: bool§fn_bind: boolSupport function bind expression.
decorators: boolEnable decorators.
decorators_before_export: boolbabel: decorators.decoratorsBeforeExport
Effective only if decorator is true.
export_default_from: bool§import_attributes: boolStage 3.
allow_super_outside_method: bool§allow_return_outside_function: bool§auto_accessors: bool§explicit_resource_management: boolTrait Implementations§
Source§impl<'de> Deserialize<'de> for EsSyntax
impl<'de> Deserialize<'de> for EsSyntax
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
impl Copy for EsSyntax
impl Eq for EsSyntax
impl StructuralPartialEq for EsSyntax
Auto Trait Implementations§
impl Freeze for EsSyntax
impl RefUnwindSafe for EsSyntax
impl Send for EsSyntax
impl Sync for EsSyntax
impl Unpin for EsSyntax
impl UnwindSafe for EsSyntax
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more