pub enum ObjectEntry {
Field {
key: String,
value: Expr,
type_annotation: Option<TypeAnnotation>,
},
Spread(Expr),
}Expand description
Entry in an object literal - either a field or a spread
Variants§
Trait Implementations§
Source§impl Clone for ObjectEntry
impl Clone for ObjectEntry
Source§fn clone(&self) -> ObjectEntry
fn clone(&self) -> ObjectEntry
Returns a duplicate of the value. Read more
1.0.0 · 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 ObjectEntry
impl Debug for ObjectEntry
Source§impl<'de> Deserialize<'de> for ObjectEntry
impl<'de> Deserialize<'de> for ObjectEntry
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 ObjectEntry
impl PartialEq for ObjectEntry
Source§impl Serialize for ObjectEntry
impl Serialize for ObjectEntry
impl StructuralPartialEq for ObjectEntry
Auto Trait Implementations§
impl Freeze for ObjectEntry
impl RefUnwindSafe for ObjectEntry
impl Send for ObjectEntry
impl Sync for ObjectEntry
impl Unpin for ObjectEntry
impl UnsafeUnpin for ObjectEntry
impl UnwindSafe for ObjectEntry
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