pub struct ObjectType {
pub fields: Vec<Field>,
}
Expand description
An object type.
See: https://www.typescriptlang.org/docs/handbook/2/everyday-types.html#object-types
Fields§
§fields: Vec<Field>
The fields of the object type.
Trait Implementations§
Source§impl Clone for ObjectType
impl Clone for ObjectType
Source§fn clone(&self) -> ObjectType
fn clone(&self) -> ObjectType
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ObjectType
impl Debug for ObjectType
Source§impl Display for ObjectType
impl Display for ObjectType
Source§impl From<ObjectType> for Type
impl From<ObjectType> for Type
Source§fn from(value: ObjectType) -> Self
fn from(value: ObjectType) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ObjectType
impl PartialEq for ObjectType
impl StructuralPartialEq for ObjectType
Auto Trait Implementations§
impl Freeze for ObjectType
impl RefUnwindSafe for ObjectType
impl Send for ObjectType
impl Sync for ObjectType
impl Unpin for ObjectType
impl UnwindSafe for ObjectType
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