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>,
}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.
Trait Implementations§
Source§impl Clone for SchemaRecord
impl Clone for SchemaRecord
Source§fn clone(&self) -> SchemaRecord
fn clone(&self) -> SchemaRecord
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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