Struct cynic_introspection::InterfaceType
source · #[non_exhaustive]pub struct InterfaceType {
pub name: String,
pub description: Option<String>,
pub fields: Vec<Field>,
pub interfaces: Vec<String>,
pub possible_types: Vec<String>,
}Expand description
Interfaces are an abstract type where there are common fields declared.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringThe name of the interface
description: Option<String>A description of the interface
fields: Vec<Field>The fields of the interface
interfaces: Vec<String>Any interfaces this interface also implements
possible_types: Vec<String>The set of types that implement this interface
Trait Implementations§
source§impl Clone for InterfaceType
impl Clone for InterfaceType
source§fn clone(&self) -> InterfaceType
fn clone(&self) -> InterfaceType
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for InterfaceType
impl Debug for InterfaceType
source§impl PartialEq for InterfaceType
impl PartialEq for InterfaceType
source§fn eq(&self, other: &InterfaceType) -> bool
fn eq(&self, other: &InterfaceType) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for InterfaceType
impl StructuralEq for InterfaceType
impl StructuralPartialEq for InterfaceType
Auto Trait Implementations§
impl RefUnwindSafe for InterfaceType
impl Send for InterfaceType
impl Sync for InterfaceType
impl Unpin for InterfaceType
impl UnwindSafe for InterfaceType
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