pub struct FieldUnit {
pub name: String,
pub doc: Option<String>,
pub attributes: Vec<String>,
pub source: Option<String>,
}
Expand description
Represents a field in a struct
Fields§
§name: String
The name of the field
doc: Option<String>
documentation for the field
attributes: Vec<String>
attributes applied to the field
source: Option<String>
the source code of the field
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FieldUnit
impl RefUnwindSafe for FieldUnit
impl Send for FieldUnit
impl Sync for FieldUnit
impl Unpin for FieldUnit
impl UnwindSafe for FieldUnit
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