Enum mlmd::errors::PutError[][src]

pub enum PutError {
    Db(Error),
    TypeNotFound {
        type_id: TypeId,
        item_id: Id,
    },
    TypeAlreadyExists {
        type_kind: TypeKind,
        type_name: String,
    },
    UndefinedProperty {
        item_id: Id,
        property_name: String,
        property_type: PropertyType,
    },
    NameAlreadyExists {
        item_id: Id,
        item_name: String,
    },
    NotFound {
        item_id: Id,
    },
}

Possible errors while putting items into database.

Variants

Db(Error)

Database error.

TypeNotFound

Artifact, execution or context has a type that doesn’t exist.

Fields of TypeNotFound

type_id: TypeIditem_id: Id
TypeAlreadyExists

The same name type already exists and it has incompatible properties.

Fields of TypeAlreadyExists

type_kind: TypeKindtype_name: String
UndefinedProperty

Artifact, execution or context has a property of which type doesn’t define.

Fields of UndefinedProperty

item_id: Idproperty_name: Stringproperty_type: PropertyType
NameAlreadyExists

A name which already exists is specified.

Fields of NameAlreadyExists

item_id: Iditem_name: String
NotFound

The artifact, execution or context hasn’t been created yet.

Fields of NotFound

item_id: Id

Trait Implementations

impl Debug for PutError[src]

impl Display for PutError[src]

impl Error for PutError[src]

impl From<Error> for PutError[src]

impl From<GetError> for PutError[src]

Auto Trait Implementations

impl !RefUnwindSafe for PutError

impl Send for PutError

impl Sync for PutError

impl Unpin for PutError

impl !UnwindSafe for PutError

Blanket Implementations

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

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

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

impl<T> Conv for T

impl<T> Conv for T

impl<T> FmtForward for T

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

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

impl<T> Pipe for T where
    T: ?Sized

impl<T> Pipe for T

impl<T> PipeAsRef for T

impl<T> PipeBorrow for T

impl<T> PipeDeref for T

impl<T> PipeRef for T

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> Tap for T

impl<T> Tap for T

impl<T, U> TapAsRef<U> for T where
    U: ?Sized

impl<T, U> TapBorrow<U> for T where
    U: ?Sized

impl<T> TapDeref for T

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

impl<T> TryConv for T

impl<T> TryConv for T

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<V, T> VZip<V> for T where
    V: MultiLane<T>,