pub enum FederationKeyProblem {
UnknownType {
entity: String,
suggestions: Vec<String>,
},
DuplicateEntity {
entity: String,
},
EmbeddedType {
entity: String,
},
EmptyKey {
entity: String,
},
MalformedFieldSet {
entity: String,
field_set: String,
reason: String,
},
MissingField {
entity: String,
path: String,
owner: String,
hint: Option<String>,
},
SelectionOnLeaf {
entity: String,
path: String,
},
ObjectWithoutSelection {
entity: String,
path: String,
},
InvalidKeyFieldType {
entity: String,
path: String,
kind: &'static str,
},
UnknownNestedType {
entity: String,
path: String,
type_name: String,
},
}Expand description
One reason a federation entity’s @key cannot be served as declared.
Every variant names the entity, so a report over many entities stays attributable.
Variants§
UnknownType
The entity names neither an object type nor an interface the schema declares.
Fields
DuplicateEntity
The entity is declared twice; only one declaration can reach the SDL.
EmbeddedType
The entity is an embedded value type, which has no identity to key on.
EmptyKey
The key selects no field at all.
MalformedFieldSet
The key is not a field set: an alias, an argument, a directive, a fragment, an unbalanced brace or an empty nested selection.
Fields
MissingField
The key selects a field the type it is selected on does not declare.
Fields
SelectionOnLeaf
The key gives a nested selection to a field that has no sub-fields.
ObjectWithoutSelection
The key names an object field without selecting any of its fields.
InvalidKeyFieldType
The key selects a list, interface, union or input-object field, which no key may contain.
Fields
UnknownNestedType
A nested selection reaches an object type the schema does not declare.
Trait Implementations§
Source§impl Clone for FederationKeyProblem
impl Clone for FederationKeyProblem
Source§impl Debug for FederationKeyProblem
impl Debug for FederationKeyProblem
Source§impl Display for FederationKeyProblem
impl Display for FederationKeyProblem
impl Eq for FederationKeyProblem
Source§impl PartialEq for FederationKeyProblem
impl PartialEq for FederationKeyProblem
impl StructuralPartialEq for FederationKeyProblem
Auto Trait Implementations§
impl Freeze for FederationKeyProblem
impl RefUnwindSafe for FederationKeyProblem
impl Send for FederationKeyProblem
impl Sync for FederationKeyProblem
impl Unpin for FederationKeyProblem
impl UnsafeUnpin for FederationKeyProblem
impl UnwindSafe for FederationKeyProblem
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.