pub enum StructuredQueryError {
TooLong,
InvalidByte,
EmptyPair,
EmptyKey,
MultipleEquals,
InvalidPercentTriplet,
LowercasePercentHex,
EncodedControl,
EncodedUnreserved,
PlusForbidden,
}Expand description
Structured query validation error.
Variants§
TooLong
Queries exceed MAX_REQUEST_TARGET_BYTES.
InvalidByte
A raw byte is outside the admitted ASCII query grammar.
EmptyPair
Empty &-delimited pairs are forbidden.
EmptyKey
Query keys must not be empty.
MultipleEquals
A query pair contains more than one raw =.
InvalidPercentTriplet
A percent triplet is incomplete or malformed.
LowercasePercentHex
Percent hexadecimal digits must be uppercase.
EncodedControl
A percent triplet encodes a control byte or fragment delimiter.
EncodedUnreserved
An unreserved byte was needlessly percent encoded.
PlusForbidden
+ is forbidden outside an explicit form-query dialect.
Trait Implementations§
Source§impl Clone for StructuredQueryError
impl Clone for StructuredQueryError
Source§fn clone(&self) -> StructuredQueryError
fn clone(&self) -> StructuredQueryError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for StructuredQueryError
Source§impl Debug for StructuredQueryError
impl Debug for StructuredQueryError
Source§impl Display for StructuredQueryError
impl Display for StructuredQueryError
impl Eq for StructuredQueryError
Source§impl Error for StructuredQueryError
impl Error for StructuredQueryError
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 PartialEq for StructuredQueryError
impl PartialEq for StructuredQueryError
impl StructuralPartialEq for StructuredQueryError
Auto Trait Implementations§
impl Freeze for StructuredQueryError
impl RefUnwindSafe for StructuredQueryError
impl Send for StructuredQueryError
impl Sync for StructuredQueryError
impl Unpin for StructuredQueryError
impl UnsafeUnpin for StructuredQueryError
impl UnwindSafe for StructuredQueryError
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