Enum trustfall_core::schema::error::InvalidSchemaError
source · #[non_exhaustive]pub enum InvalidSchemaError {
Show 21 variants
MultipleErrors(DisplayVec<InvalidSchemaError>),
SchemaParseError(Error),
InvalidTypeWideningOfInheritedField(String, String, String, String, String),
InvalidTypeNarrowingOfInheritedFieldParameter(String, String, String, String, String, String),
InheritedFieldMissingParameters(String, String, String, Vec<String>),
InheritedFieldUnexpectedParameters(String, String, String, Vec<String>),
InvalidDefaultValueForFieldParameter(String, String, String, String, String),
CircularImplementsRelationships(Vec<String>),
MissingTransitiveInterfaceImplementation(String, String, String),
MissingRequiredField(String, String, String, String),
AmbiguousFieldOrigin(String, String, String, Vec<String>),
PropertyFieldWithParameters(String, String, String, Vec<String>),
InvalidEdgeType(String, String, String),
PropertyFieldOnRootQueryType(String, String, String),
EdgePointsToRootQueryType(String, String, String),
ReservedFieldName(String, String),
ReservedTypeName(String),
ImplementingNonExistentType(String, String),
ImplementingNonInterface(String, String),
DuplicateFieldDefinition(String, String),
DuplicateTypeOrInterfaceDefinition(String),
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
MultipleErrors(DisplayVec<InvalidSchemaError>)
SchemaParseError(Error)
InvalidTypeWideningOfInheritedField(String, String, String, String, String)
InvalidTypeNarrowingOfInheritedFieldParameter(String, String, String, String, String, String)
InheritedFieldMissingParameters(String, String, String, Vec<String>)
InheritedFieldUnexpectedParameters(String, String, String, Vec<String>)
InvalidDefaultValueForFieldParameter(String, String, String, String, String)
CircularImplementsRelationships(Vec<String>)
MissingTransitiveInterfaceImplementation(String, String, String)
MissingRequiredField(String, String, String, String)
AmbiguousFieldOrigin(String, String, String, Vec<String>)
This may or may not be supported in the future.
If supported, it will only be supported as an explicit opt-in, e.g. via an explicit directive on each type where a new ambiguity appears.
PropertyFieldWithParameters(String, String, String, Vec<String>)
InvalidEdgeType(String, String, String)
PropertyFieldOnRootQueryType(String, String, String)
EdgePointsToRootQueryType(String, String, String)
ReservedFieldName(String, String)
ReservedTypeName(String)
ImplementingNonExistentType(String, String)
ImplementingNonInterface(String, String)
DuplicateFieldDefinition(String, String)
DuplicateTypeOrInterfaceDefinition(String)
Trait Implementations§
source§impl Clone for InvalidSchemaError
impl Clone for InvalidSchemaError
source§fn clone(&self) -> InvalidSchemaError
fn clone(&self) -> InvalidSchemaError
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 InvalidSchemaError
impl Debug for InvalidSchemaError
source§impl<'de> Deserialize<'de> for InvalidSchemaError
impl<'de> Deserialize<'de> for InvalidSchemaError
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for InvalidSchemaError
impl Display for InvalidSchemaError
source§impl Error for InvalidSchemaError
impl Error for InvalidSchemaError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<Error> for InvalidSchemaError
impl From<Error> for InvalidSchemaError
source§impl From<Vec<InvalidSchemaError>> for InvalidSchemaError
impl From<Vec<InvalidSchemaError>> for InvalidSchemaError
source§fn from(v: Vec<InvalidSchemaError>) -> Self
fn from(v: Vec<InvalidSchemaError>) -> Self
Converts to this type from the input type.
source§impl PartialEq for InvalidSchemaError
impl PartialEq for InvalidSchemaError
source§fn eq(&self, other: &InvalidSchemaError) -> bool
fn eq(&self, other: &InvalidSchemaError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for InvalidSchemaError
impl Serialize for InvalidSchemaError
impl Eq for InvalidSchemaError
impl StructuralEq for InvalidSchemaError
impl StructuralPartialEq for InvalidSchemaError
Auto Trait Implementations§
impl RefUnwindSafe for InvalidSchemaError
impl Send for InvalidSchemaError
impl Sync for InvalidSchemaError
impl Unpin for InvalidSchemaError
impl UnwindSafe for InvalidSchemaError
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.