pub enum GameRepositoryError {
ForeignKeyViolationUserNotFound {
id: i64,
},
}Variants§
Implementations§
Source§impl GameRepositoryError
impl GameRepositoryError
pub fn foreign_key_violation_user_not_found(id: i64) -> Self
pub fn is_foreign_key_violation_user_not_found(&self) -> bool
Trait Implementations§
Source§impl Debug for GameRepositoryError
impl Debug for GameRepositoryError
Source§impl Display for GameRepositoryError
impl Display for GameRepositoryError
Source§impl Error for GameRepositoryError
impl Error for GameRepositoryError
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()
Auto Trait Implementations§
impl Freeze for GameRepositoryError
impl RefUnwindSafe for GameRepositoryError
impl Send for GameRepositoryError
impl Sync for GameRepositoryError
impl Unpin for GameRepositoryError
impl UnwindSafe for GameRepositoryError
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
Source§impl<T> IntoSql for T
impl<T> IntoSql for T
Source§fn into_sql<T>(self) -> Self::Expression
fn into_sql<T>(self) -> Self::Expression
Convert
self to an expression for Diesel’s query builder. Read moreSource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
Convert
&self to an expression for Diesel’s query builder. Read more