pub enum AnnotationParseError {
MalformedHttp {
line: usize,
value: String,
},
UnknownMethod {
line: usize,
method: String,
},
DuplicateHttp {
line: usize,
},
MalformedHttpParam {
line: usize,
value: String,
},
UnknownBinding {
line: usize,
binding: String,
},
MalformedHttpStatus {
line: usize,
value: String,
},
MalformedHttpAuth {
line: usize,
value: String,
},
UnknownApiKeyLocation {
line: usize,
location: String,
},
IncompatibleCommand {
command: String,
},
MethodCommandMismatch {
command: String,
expected_methods: Vec<&'static str>,
actual_method: String,
},
}Expand description
Errors raised while parsing HTTP annotations. Each variant carries the
1-based source line from the originating CustomAnnotation so messages can
point users at the offending SQL.
Variants§
MalformedHttp
UnknownMethod
DuplicateHttp
MalformedHttpParam
UnknownBinding
MalformedHttpStatus
MalformedHttpAuth
UnknownApiKeyLocation
IncompatibleCommand
MethodCommandMismatch
Trait Implementations§
Source§impl Debug for AnnotationParseError
impl Debug for AnnotationParseError
Source§impl Display for AnnotationParseError
impl Display for AnnotationParseError
Source§impl Error for AnnotationParseError
impl Error for AnnotationParseError
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()
Source§impl From<AnnotationParseError> for RouteBuildError
impl From<AnnotationParseError> for RouteBuildError
Source§fn from(source: AnnotationParseError) -> Self
fn from(source: AnnotationParseError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for AnnotationParseError
impl PartialEq for AnnotationParseError
Source§fn eq(&self, other: &AnnotationParseError) -> bool
fn eq(&self, other: &AnnotationParseError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for AnnotationParseError
impl StructuralPartialEq for AnnotationParseError
Auto Trait Implementations§
impl Freeze for AnnotationParseError
impl RefUnwindSafe for AnnotationParseError
impl Send for AnnotationParseError
impl Sync for AnnotationParseError
impl Unpin for AnnotationParseError
impl UnsafeUnpin for AnnotationParseError
impl UnwindSafe for AnnotationParseError
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
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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
Compare self to
key and return true if they are equal.