pub struct ObjectField {
pub name: FieldName,
pub visibility: Visibility,
pub expr: Box<Expr>,
}
Expand description
Object field definition
Fields§
§name: FieldName
Field name (can be an expression for computed fields)
visibility: Visibility
Field visibility
expr: Box<Expr>
Field value expression
Trait Implementations§
Source§impl Clone for ObjectField
impl Clone for ObjectField
Source§fn clone(&self) -> ObjectField
fn clone(&self) -> ObjectField
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 ObjectField
impl Debug for ObjectField
Source§impl PartialEq for ObjectField
impl PartialEq for ObjectField
impl StructuralPartialEq for ObjectField
Auto Trait Implementations§
impl Freeze for ObjectField
impl RefUnwindSafe for ObjectField
impl Send for ObjectField
impl Sync for ObjectField
impl Unpin for ObjectField
impl UnwindSafe for ObjectField
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