pub struct Field {
pub name: String,
pub ty: Type,
pub optional: bool,
}Expand description
A field in e.g. an interface or an object type.
Fields§
§name: StringThe name of the field.
ty: TypeThe type of the field.
optional: boolWhether the field is optional, e.g. optional?: boolean.
Trait Implementations§
impl StructuralPartialEq for Field
Auto Trait Implementations§
impl Freeze for Field
impl RefUnwindSafe for Field
impl Send for Field
impl Sync for Field
impl Unpin for Field
impl UnwindSafe for Field
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