pub struct SchemaRecord {
pub path: String,
pub name: String,
pub kind: Kind,
pub parent: Option<String>,
pub type_ref: Option<String>,
pub args: Vec<String>,
pub description: Option<String>,
pub deprecated: Option<String>,
pub directives: Vec<String>,
pub possible_types: Vec<String>,
}Expand description
One searchable schema entity.
Fields§
§path: StringFully-qualified path, e.g. User.email, Query.user, @deprecated.
name: StringThe leaf name matched against — email, user, User.
kind: Kind§parent: Option<String>Enclosing type name for fields/args/enum values.
type_ref: Option<String>Return/field/arg type, rendered like [User!]!.
args: Vec<String>Argument signatures for a field, e.g. ["id: ID!", "first: Int"].
description: Option<String>§deprecated: Option<String>Deprecation reason, if the entity is @deprecated.
directives: Vec<String>Applied directives, rendered like @auth. Populated from SDL; always
empty when the schema is loaded by introspection, since applied
directives aren’t exposed by the standard introspection query — so the
same schema can differ in this field between its SDL and its endpoint.
possible_types: Vec<String>What a union’s or interface’s abstract type can actually be at runtime: a union’s members, or the objects implementing an interface. Empty for every other kind. This is what an inline fragment has to name, so a query against an abstract type can’t be written without it.
Implementations§
Source§impl SchemaRecord
impl SchemaRecord
Trait Implementations§
Source§impl Clone for SchemaRecord
impl Clone for SchemaRecord
Source§fn clone(&self) -> SchemaRecord
fn clone(&self) -> SchemaRecord
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SchemaRecord
impl Debug for SchemaRecord
Auto Trait Implementations§
impl Freeze for SchemaRecord
impl RefUnwindSafe for SchemaRecord
impl Send for SchemaRecord
impl Sync for SchemaRecord
impl Unpin for SchemaRecord
impl UnsafeUnpin for SchemaRecord
impl UnwindSafe for SchemaRecord
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more