pub struct Field<T> {
pub name: Ident,
pub ty: T,
pub default: Option<T>,
pub vis: Visibility,
pub doc: Option<Doc>,
pub optional: bool,
pub attributes: Vec<T>,
}
Fields§
§name: Ident
§ty: T
§default: Option<T>
§vis: Visibility
§doc: Option<Doc>
§optional: bool
§attributes: Vec<T>
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Field<T>where
T: Freeze,
impl<T> RefUnwindSafe for Field<T>where
T: RefUnwindSafe,
impl<T> Send for Field<T>where
T: Send,
impl<T> Sync for Field<T>where
T: Sync,
impl<T> Unpin for Field<T>where
T: Unpin,
impl<T> UnwindSafe for Field<T>where
T: UnwindSafe,
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