Enum tusk_rs::database::PostgresWriteError
source · pub enum PostgresWriteError {
InsertValueCountMismatch,
UniqueConstraintViolation(String, String),
NotNullConstraintViolation(String),
PermissionDenied(String),
NoRows,
Unknown(Error),
}Variants§
InsertValueCountMismatch
UniqueConstraintViolation(String, String)
NotNullConstraintViolation(String)
PermissionDenied(String)
NoRows
Unknown(Error)
Implementations§
source§impl PostgresWriteError
impl PostgresWriteError
pub fn from_pg_err(err: Error) -> PostgresWriteError
Trait Implementations§
source§impl Debug for PostgresWriteError
impl Debug for PostgresWriteError
Auto Trait Implementations§
impl Freeze for PostgresWriteError
impl !RefUnwindSafe for PostgresWriteError
impl Send for PostgresWriteError
impl Sync for PostgresWriteError
impl Unpin for PostgresWriteError
impl !UnwindSafe for PostgresWriteError
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