pub enum SqlIdentifierError {
Empty,
InvalidCharacter(char),
InvalidWildcardPosition,
StartsWithDigit,
}Expand description
Error returned when constructing a SqlIdentifier from an invalid string.
Variants§
Empty
The identifier is empty.
InvalidCharacter(char)
The identifier contains a character not in [A-Za-z0-9_*].
InvalidWildcardPosition
The identifier contains * in a position other than leading or trailing.
StartsWithDigit
The identifier starts with a digit (not allowed in SQL).
Trait Implementations§
Source§impl Clone for SqlIdentifierError
impl Clone for SqlIdentifierError
Source§fn clone(&self) -> SqlIdentifierError
fn clone(&self) -> SqlIdentifierError
Returns a duplicate 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 SqlIdentifierError
impl Debug for SqlIdentifierError
Source§impl Display for SqlIdentifierError
impl Display for SqlIdentifierError
Source§impl Error for SqlIdentifierError
impl Error for SqlIdentifierError
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 SqlIdentifierError
impl PartialEq for SqlIdentifierError
impl Eq for SqlIdentifierError
impl StructuralPartialEq for SqlIdentifierError
Auto Trait Implementations§
impl Freeze for SqlIdentifierError
impl RefUnwindSafe for SqlIdentifierError
impl Send for SqlIdentifierError
impl Sync for SqlIdentifierError
impl Unpin for SqlIdentifierError
impl UnsafeUnpin for SqlIdentifierError
impl UnwindSafe for SqlIdentifierError
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