pub struct Field<'resolver, TypeId> {
pub name: Option<&'resolver str>,
pub id: TypeId,
}
Expand description
Information about a composite field.
Fields§
§name: Option<&'resolver str>
The name of the field, or None
if the field is unnamed.
id: TypeId
The type ID corresponding to the value for this field.
Implementations§
Trait Implementations§
impl<'resolver, TypeId: Copy> Copy for Field<'resolver, TypeId>
Auto Trait Implementations§
impl<'resolver, TypeId> Freeze for Field<'resolver, TypeId>where
TypeId: Freeze,
impl<'resolver, TypeId> RefUnwindSafe for Field<'resolver, TypeId>where
TypeId: RefUnwindSafe,
impl<'resolver, TypeId> Send for Field<'resolver, TypeId>where
TypeId: Send,
impl<'resolver, TypeId> Sync for Field<'resolver, TypeId>where
TypeId: Sync,
impl<'resolver, TypeId> Unpin for Field<'resolver, TypeId>where
TypeId: Unpin,
impl<'resolver, TypeId> UnwindSafe for Field<'resolver, TypeId>where
TypeId: 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