pub struct Field<M = String> {
pub docs: String,
pub visibility: Visibility,
pub name: String,
pub ty: TypeRef<M>,
}Expand description
A field of a record or of a constructor’s named payload.
Fields§
§docs: StringIts doc comment.
visibility: VisibilityIts visibility; a constructor’s fields are private.
name: StringIts name.
ty: TypeRef<M>Its type.
Trait Implementations§
impl<M: Eq> Eq for Field<M>
impl<M: PartialEq> StructuralPartialEq for Field<M>
Auto Trait Implementations§
impl<M> Forget for Field<M>
impl<M> Freeze for Field<M>where
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
M: Freeze,
PhantomData<TypeRef<M>>: Freeze,
impl<M> Move for Field<M>
impl<M> RefUnwindSafe for Field<M>where
M: RefUnwindSafe,
impl<M> Send for Field<M>
impl<M> Sync for Field<M>
impl<M> Unpin for Field<M>
impl<M> UnsafeUnpin for Field<M>where
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
M: UnsafeUnpin,
PhantomData<TypeRef<M>>: UnsafeUnpin,
impl<M> UnwindSafe for Field<M>where
RawVecInner: UnwindSafe,
M: 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