Enum trustfall_core::frontend::error::FrontendError
source · #[non_exhaustive]pub enum FrontendError {
Show 25 variants
MultipleErrors(DisplayVec<FrontendError>),
ParseError(ParseError),
UndefinedTagInFilter(String, String),
TagUsedBeforeDefinition(String, String),
TagUsedOutsideItsFoldedSubquery(String, String),
UnusedTags(Vec<String>),
MultipleOutputsWithSameName(DuplicatedNamesConflict),
MultipleTagsWithSameName(String),
ExplicitTagNameRequired(String),
FilterTypeError(FilterTypeError),
UnsupportedDirectiveOnProperty(String, String),
UnsupportedEdgeOutput(String),
UnsupportedEdgeFilter(String),
UnsupportedEdgeTag(String),
UnsupportedDirectiveOnFoldedEdge(String, String),
MissingRequiredEdgeParameter(String, String),
UnexpectedEdgeParameter(String, String),
InvalidEdgeParameterType(String, String, String, FieldValue),
RecursingNonRecursableEdge(String, String, String),
RecursionToSubtype(String, String, String),
AmbiguousOriginEdgeRecursion(String),
EdgeRecursionNeedingMultipleCoercions(String),
PropertyMetaFieldUsedAsEdge(String),
ValidationError(ValidationError),
OtherError(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<FrontendError>)
ParseError(ParseError)
UndefinedTagInFilter(String, String)
TagUsedBeforeDefinition(String, String)
TagUsedOutsideItsFoldedSubquery(String, String)
UnusedTags(Vec<String>)
MultipleOutputsWithSameName(DuplicatedNamesConflict)
MultipleTagsWithSameName(String)
ExplicitTagNameRequired(String)
FilterTypeError(FilterTypeError)
UnsupportedDirectiveOnProperty(String, String)
UnsupportedEdgeOutput(String)
UnsupportedEdgeFilter(String)
UnsupportedEdgeTag(String)
UnsupportedDirectiveOnFoldedEdge(String, String)
MissingRequiredEdgeParameter(String, String)
UnexpectedEdgeParameter(String, String)
InvalidEdgeParameterType(String, String, String, FieldValue)
RecursingNonRecursableEdge(String, String, String)
RecursionToSubtype(String, String, String)
AmbiguousOriginEdgeRecursion(String)
EdgeRecursionNeedingMultipleCoercions(String)
PropertyMetaFieldUsedAsEdge(String)
ValidationError(ValidationError)
OtherError(String)
Trait Implementations§
source§impl Clone for FrontendError
impl Clone for FrontendError
source§fn clone(&self) -> FrontendError
fn clone(&self) -> FrontendError
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 FrontendError
impl Debug for FrontendError
source§impl<'de> Deserialize<'de> for FrontendError
impl<'de> Deserialize<'de> for FrontendError
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 FrontendError
impl Display for FrontendError
source§impl Error for FrontendError
impl Error for FrontendError
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<&str> for FrontendError
impl From<&str> for FrontendError
source§impl From<Error> for FrontendError
impl From<Error> for FrontendError
source§impl From<FilterTypeError> for FrontendError
impl From<FilterTypeError> for FrontendError
source§fn from(source: FilterTypeError) -> Self
fn from(source: FilterTypeError) -> Self
Converts to this type from the input type.
source§impl From<ParseError> for FrontendError
impl From<ParseError> for FrontendError
source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
source§impl From<String> for FrontendError
impl From<String> for FrontendError
source§impl From<ValidationError> for FrontendError
impl From<ValidationError> for FrontendError
source§fn from(source: ValidationError) -> Self
fn from(source: ValidationError) -> Self
Converts to this type from the input type.
source§impl From<Vec<FrontendError>> for FrontendError
impl From<Vec<FrontendError>> for FrontendError
source§fn from(v: Vec<FrontendError>) -> Self
fn from(v: Vec<FrontendError>) -> Self
Converts to this type from the input type.
source§impl PartialEq for FrontendError
impl PartialEq for FrontendError
source§fn eq(&self, other: &FrontendError) -> bool
fn eq(&self, other: &FrontendError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for FrontendError
impl Serialize for FrontendError
impl Eq for FrontendError
impl StructuralEq for FrontendError
impl StructuralPartialEq for FrontendError
Auto Trait Implementations§
impl RefUnwindSafe for FrontendError
impl Send for FrontendError
impl Sync for FrontendError
impl Unpin for FrontendError
impl UnwindSafe for FrontendError
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.