pub enum PgIdentifierError {
Empty,
ContainsDot,
EmptyQualifiedName,
InvalidStart {
character: char,
},
InvalidCharacter {
index: usize,
character: char,
},
ControlCharacter {
index: usize,
character: char,
},
ReservedKeyword,
UnterminatedQuotedIdentifier,
UnescapedQuote,
}Expand description
Error returned when PostgreSQL identifier text is rejected.
Variants§
Empty
The supplied value was empty.
ContainsDot
A conservative unquoted identifier segment cannot contain ..
EmptyQualifiedName
A qualified name requires at least one segment.
InvalidStart
The supplied value started with an invalid character.
InvalidCharacter
The supplied value contained an invalid unquoted character.
ControlCharacter
The supplied value contained a control character.
ReservedKeyword
The supplied value was a reserved PostgreSQL keyword-like label.
UnterminatedQuotedIdentifier
A quoted identifier token was missing its closing quote.
UnescapedQuote
A quoted identifier token contained a single embedded quote instead of a doubled quote.
Trait Implementations§
Source§impl Clone for PgIdentifierError
impl Clone for PgIdentifierError
Source§fn clone(&self) -> PgIdentifierError
fn clone(&self) -> PgIdentifierError
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 moreSource§impl Debug for PgIdentifierError
impl Debug for PgIdentifierError
Source§impl Display for PgIdentifierError
impl Display for PgIdentifierError
Source§impl Error for PgIdentifierError
impl Error for PgIdentifierError
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 PgIdentifierError
impl PartialEq for PgIdentifierError
Source§fn eq(&self, other: &PgIdentifierError) -> bool
fn eq(&self, other: &PgIdentifierError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for PgIdentifierError
impl Eq for PgIdentifierError
impl StructuralPartialEq for PgIdentifierError
Auto Trait Implementations§
impl Freeze for PgIdentifierError
impl RefUnwindSafe for PgIdentifierError
impl Send for PgIdentifierError
impl Sync for PgIdentifierError
impl Unpin for PgIdentifierError
impl UnsafeUnpin for PgIdentifierError
impl UnwindSafe for PgIdentifierError
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