pub enum DraftError {
SourceNotFound(Id),
DestNotFound(Id),
InvalidEdgeType(String),
Database(DatabaseError),
ValidationFailed(String),
}Expand description
Errors that can occur when creating an edge draft
Variants§
SourceNotFound(Id)
DestNotFound(Id)
InvalidEdgeType(String)
Database(DatabaseError)
ValidationFailed(String)
Trait Implementations§
Source§impl Debug for DraftError
impl Debug for DraftError
Source§impl Display for DraftError
impl Display for DraftError
Source§impl Error for DraftError
impl Error for DraftError
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 From<DatabaseError> for DraftError
impl From<DatabaseError> for DraftError
Source§fn from(source: DatabaseError) -> Self
fn from(source: DatabaseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DraftError
impl !RefUnwindSafe for DraftError
impl Send for DraftError
impl Sync for DraftError
impl Unpin for DraftError
impl !UnwindSafe for DraftError
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