pub enum DeclareError {
Show 15 variants
JsonParse(String),
NotAnObject(&'static str),
MissingField {
path: String,
field: &'static str,
},
InvalidType {
path: String,
expected: &'static str,
},
UnknownLang(String),
UnknownEdgeKind(String),
InvalidMoniker {
path: String,
value: String,
reason: String,
},
KindNotInProfile {
lang: &'static str,
kind: String,
},
VisibilityNotInProfile {
lang: &'static str,
visibility: String,
},
KindMismatchMoniker {
path: String,
declared_kind: String,
moniker_last_kind: String,
},
DuplicateMoniker {
moniker: String,
},
UnknownParent {
path: String,
parent: String,
},
UnknownEdgeSource {
path: String,
from: String,
},
LangMismatch {
expected: &'static str,
actual: String,
},
GraphError(String),
}Variants§
JsonParse(String)
NotAnObject(&'static str)
MissingField
InvalidType
UnknownLang(String)
UnknownEdgeKind(String)
InvalidMoniker
KindNotInProfile
VisibilityNotInProfile
KindMismatchMoniker
DuplicateMoniker
UnknownParent
UnknownEdgeSource
LangMismatch
GraphError(String)
Trait Implementations§
Source§impl Clone for DeclareError
impl Clone for DeclareError
Source§fn clone(&self) -> DeclareError
fn clone(&self) -> DeclareError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DeclareError
impl Debug for DeclareError
Source§impl Display for DeclareError
impl Display for DeclareError
Source§impl Error for DeclareError
impl Error for DeclareError
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()
Source§impl PartialEq for DeclareError
impl PartialEq for DeclareError
Source§fn eq(&self, other: &DeclareError) -> bool
fn eq(&self, other: &DeclareError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for DeclareError
impl StructuralPartialEq for DeclareError
Auto Trait Implementations§
impl Freeze for DeclareError
impl RefUnwindSafe for DeclareError
impl Send for DeclareError
impl Sync for DeclareError
impl Unpin for DeclareError
impl UnsafeUnpin for DeclareError
impl UnwindSafe for DeclareError
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.