[][src]Enum speedruns::data::database::IntegrityError

pub enum IntegrityError {
    IndexingError,
    ForeignKeyMissing {
        target_type: &'static str,
        target_id: u64,
        foreign_key_field: &'static str,
        source: AnyModel,
    },
    CheckFailed {
        errors: ValidationErrors,
        source: AnyModel,
    },
    NonUniqueSlug {
        slug: String,
        sources: AnyModelVec,
    },
    MissingPrimaryTiming(Run),
}

Variants

IndexingError
ForeignKeyMissing

Fields of ForeignKeyMissing

target_type: &'static strtarget_id: u64foreign_key_field: &'static strsource: AnyModel
CheckFailed

Fields of CheckFailed

errors: ValidationErrorssource: AnyModel
NonUniqueSlug

Fields of NonUniqueSlug

slug: Stringsources: AnyModelVec
MissingPrimaryTiming(Run)

Trait Implementations

impl Debug for IntegrityError[src]

impl Display for IntegrityError[src]

impl Error for IntegrityError[src]

impl From<(&'static str, u64, &'static str, AnyModel)> for IntegrityError[src]

impl From<()> for IntegrityError[src]

impl From<(String, AnyModelVec)> for IntegrityError[src]

impl From<(ValidationErrors, AnyModel)> for IntegrityError[src]

impl From<Run> for IntegrityError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> AsFail for T where
    T: Fail, 

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<E> Fail for E where
    E: 'static + Error + Send + Sync

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,