pub enum ParseError {
Show 54 variants
Wire(Error),
OperationFieldNotAllowed {
kind: OperationKind,
field: &'static str,
},
MissingRequiredField {
kind: OperationKind,
field: &'static str,
},
EmptyFilter,
MixedDollarAndBare {
path: Vec<String>,
},
TopLevelNotNotSupported {
path: Vec<String>,
},
UnknownOperator {
op: String,
path: Vec<String>,
},
EmptyOperatorList {
op: &'static str,
},
OperatorExpectedList {
op: &'static str,
},
OperatorExpectedMapping {
op: &'static str,
},
OperatorExpectedString {
op: &'static str,
},
OperatorExpectedBool {
op: &'static str,
},
OperatorExpectedNonNegativeInt {
op: &'static str,
},
OperatorExpectedInteger {
op: &'static str,
},
UnknownTypeName {
name: String,
},
TypeBareYamlNull,
InvalidProjectionValue {
path: Vec<String>,
},
UnknownProjectionSource {
selector: String,
},
ReservedOutputName {
name: String,
},
NestedProjectionOutput {
name: String,
},
ProjectAddFieldsConflict,
InvalidSortValue {
key: String,
value: i64,
},
EmptySort,
MultiKeySortNotSupportedV1,
NegativeLimit(i64),
EmptyUpdate,
UnknownUpdateOperator {
op: String,
},
EmptyUpdateOperator {
op: &'static str,
},
UpdateOperatorExpectedMapping {
op: &'static str,
},
ReservedPrefixField {
path: Vec<String>,
},
SetUnsetConflict {
path: Vec<String>,
},
EmptyFieldPath,
InvalidPathSegment {
path: Vec<String>,
reason: &'static str,
},
NonStringKey,
GraphOpExpectedScalarOrMapping {
op: &'static str,
},
ArrayFormRemoved {
op: &'static str,
},
EmptyAnchorMapping {
op: &'static str,
},
WrongBoundFamily {
op: &'static str,
modifier: &'static str,
},
DepthRangeInverted {
op: &'static str,
sentinel: &'static str,
},
InvalidCountPredicate {
op: &'static str,
},
KeyOpForbidden {
op: &'static str,
},
InvalidDepthValue {
op: &'static str,
modifier: &'static str,
},
UnknownBlockOperator {
op: String,
},
BareKeyInBlockPredicate {
key: String,
},
BlockScalarNotAllowed {
op: &'static str,
},
BlockTextPredicateNotAllowed {
op: &'static str,
},
WithinArgumentWithoutContents,
InvalidRegex {
pattern: String,
message: String,
},
MatchesPatternMissing,
UnknownBlockPayloadKey {
op: &'static str,
key: String,
},
MissingBlockPayload {
op: &'static str,
key: &'static str,
},
BlockPayloadExpectedString {
op: &'static str,
key: &'static str,
},
InvalidExpect,
EmptySearch,
}Variants§
Wire(Error)
OperationFieldNotAllowed
MissingRequiredField
EmptyFilter
MixedDollarAndBare
TopLevelNotNotSupported
UnknownOperator
EmptyOperatorList
OperatorExpectedList
OperatorExpectedMapping
OperatorExpectedString
OperatorExpectedBool
OperatorExpectedNonNegativeInt
OperatorExpectedInteger
UnknownTypeName
TypeBareYamlNull
InvalidProjectionValue
UnknownProjectionSource
ReservedOutputName
NestedProjectionOutput
ProjectAddFieldsConflict
InvalidSortValue
EmptySort
MultiKeySortNotSupportedV1
NegativeLimit(i64)
EmptyUpdate
UnknownUpdateOperator
EmptyUpdateOperator
UpdateOperatorExpectedMapping
ReservedPrefixField
SetUnsetConflict
EmptyFieldPath
InvalidPathSegment
NonStringKey
GraphOpExpectedScalarOrMapping
ArrayFormRemoved
EmptyAnchorMapping
WrongBoundFamily
DepthRangeInverted
InvalidCountPredicate
KeyOpForbidden
InvalidDepthValue
UnknownBlockOperator
BareKeyInBlockPredicate
BlockScalarNotAllowed
BlockTextPredicateNotAllowed
WithinArgumentWithoutContents
InvalidRegex
MatchesPatternMissing
UnknownBlockPayloadKey
MissingBlockPayload
BlockPayloadExpectedString
InvalidExpect
EmptySearch
Trait Implementations§
Source§impl Debug for ParseError
impl Debug for ParseError
Source§impl Display for ParseError
impl Display for ParseError
Source§impl Error for ParseError
impl Error for ParseError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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()
Auto Trait Implementations§
impl !RefUnwindSafe for ParseError
impl !UnwindSafe for ParseError
impl Freeze for ParseError
impl Send for ParseError
impl Sync for ParseError
impl Unpin for ParseError
impl UnsafeUnpin for ParseError
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> 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