pub struct VisionError {
pub code: ErrorCode,
pub message: Box<str>,
pub index: Option<usize>,
}Expand description
Infrastructure-neutral validation error.
Fields§
§code: ErrorCode§message: Box<str>§index: Option<usize>Trait Implementations§
Source§impl Clone for VisionError
impl Clone for VisionError
Source§impl Debug for VisionError
impl Debug for VisionError
Source§impl<'de> Deserialize<'de> for VisionError
impl<'de> Deserialize<'de> for VisionError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for VisionError
impl Display for VisionError
impl Eq for VisionError
Source§impl Error for VisionError
impl Error for VisionError
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 VisionError
impl PartialEq for VisionError
Source§impl Serialize for VisionError
impl Serialize for VisionError
impl StructuralPartialEq for VisionError
Auto Trait Implementations§
impl Forget for VisionError
impl Freeze for VisionError
impl Move for VisionError
impl RefUnwindSafe for VisionError
impl Send for VisionError
impl Sync for VisionError
impl Unpin for VisionError
impl UnsafeUnpin for VisionError
impl UnwindSafe for VisionError
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