pub enum RefResolutionError {
RecursiveRef(TypeId),
DanglingRef(TypeId),
}Expand description
Error from resolving a chain of SchemaType::Ref indirections in a
SchemaGraph.
Variants§
RecursiveRef(TypeId)
The schema graph has a recursive cycle.
DanglingRef(TypeId)
A SchemaType::Ref pointed at a TypeId not present in the graph.
Trait Implementations§
Source§impl Clone for RefResolutionError
impl Clone for RefResolutionError
Source§fn clone(&self) -> RefResolutionError
fn clone(&self) -> RefResolutionError
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 RefResolutionError
impl Debug for RefResolutionError
Source§impl Display for RefResolutionError
impl Display for RefResolutionError
impl Eq for RefResolutionError
Source§impl Error for RefResolutionError
impl Error for RefResolutionError
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 From<RefResolutionError> for UnstructuredError
impl From<RefResolutionError> for UnstructuredError
Source§fn from(err: RefResolutionError) -> UnstructuredError
fn from(err: RefResolutionError) -> UnstructuredError
Converts to this type from the input type.
Source§impl PartialEq for RefResolutionError
impl PartialEq for RefResolutionError
impl StructuralPartialEq for RefResolutionError
Auto Trait Implementations§
impl Freeze for RefResolutionError
impl RefUnwindSafe for RefResolutionError
impl Send for RefResolutionError
impl Sync for RefResolutionError
impl Unpin for RefResolutionError
impl UnsafeUnpin for RefResolutionError
impl UnwindSafe for RefResolutionError
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