pub enum DatabaseAliasError {
Empty,
TooLong {
actual: usize,
maximum: usize,
},
InvalidCharacter {
index: usize,
},
}Expand description
A database alias did not match the public canonical grammar.
Variants§
Empty
The alias was empty.
TooLong
The alias exceeded its byte bound.
InvalidCharacter
One byte violated [a-z][a-z0-9_-]{0,63}.
Trait Implementations§
Source§impl Clone for DatabaseAliasError
impl Clone for DatabaseAliasError
impl Copy for DatabaseAliasError
Source§impl Debug for DatabaseAliasError
impl Debug for DatabaseAliasError
Source§impl Display for DatabaseAliasError
impl Display for DatabaseAliasError
impl Eq for DatabaseAliasError
Source§impl Error for DatabaseAliasError
impl Error for DatabaseAliasError
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 DatabaseAliasError
impl PartialEq for DatabaseAliasError
impl StructuralPartialEq for DatabaseAliasError
Auto Trait Implementations§
impl Freeze for DatabaseAliasError
impl RefUnwindSafe for DatabaseAliasError
impl Send for DatabaseAliasError
impl Sync for DatabaseAliasError
impl Unpin for DatabaseAliasError
impl UnsafeUnpin for DatabaseAliasError
impl UnwindSafe for DatabaseAliasError
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