pub struct DataField {
pub comments: Option<Comments>,
pub name: Sp<Ident>,
pub validator: Option<FieldValidator>,
pub eol_comment: Option<Sp<EcoString>>,
pub init: Option<FieldInit>,
pub bar_span: Option<CodeSpan>,
}Expand description
A data field
Fields§
§comments: Option<Comments>Leading comments
name: Sp<Ident>The name of the field
validator: Option<FieldValidator>The validator of the field
eol_comment: Option<Sp<EcoString>>An inline comment when there is no init
init: Option<FieldInit>The default value of the field
bar_span: Option<CodeSpan>The span of a trailing bar
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DataField
impl<'de> Deserialize<'de> for DataField
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 StructuralPartialEq for DataField
Auto Trait Implementations§
impl Freeze for DataField
impl RefUnwindSafe for DataField
impl Send for DataField
impl Sync for DataField
impl Unpin for DataField
impl UnsafeUnpin for DataField
impl UnwindSafe for DataField
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