pub struct ObjectMethod {Show 14 fields
pub base: BaseNode,
pub method: bool,
pub kind: ObjectMethodKind,
pub key: Box<Expression>,
pub params: Vec<PatternLike>,
pub body: BlockStatement,
pub computed: bool,
pub id: Option<Identifier>,
pub generator: bool,
pub is_async: bool,
pub decorators: Option<Vec<Value>>,
pub return_type: Option<Box<Value>>,
pub type_parameters: Option<Box<Value>>,
pub predicate: Option<Box<Value>>,
}Fields§
§base: BaseNode§method: bool§kind: ObjectMethodKind§key: Box<Expression>§params: Vec<PatternLike>§body: BlockStatement§computed: bool§id: Option<Identifier>§generator: bool§is_async: bool§decorators: Option<Vec<Value>>§return_type: Option<Box<Value>>§type_parameters: Option<Box<Value>>§predicate: Option<Box<Value>>Trait Implementations§
Source§impl Clone for ObjectMethod
impl Clone for ObjectMethod
Source§fn clone(&self) -> ObjectMethod
fn clone(&self) -> ObjectMethod
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ObjectMethod
impl Debug for ObjectMethod
Source§impl<'de> Deserialize<'de> for ObjectMethod
impl<'de> Deserialize<'de> for ObjectMethod
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 Freeze for ObjectMethod
impl RefUnwindSafe for ObjectMethod
impl Send for ObjectMethod
impl Sync for ObjectMethod
impl Unpin for ObjectMethod
impl UnsafeUnpin for ObjectMethod
impl UnwindSafe for ObjectMethod
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