pub struct ServiceError {
pub code: ErrorCode,
pub details: Option<ErrorDetails>,
pub inner_error: Option<ErrorDetails>,
pub message: String,
pub target: Option<ErrorTarget>,
}
Expand description
Error object for schema operations
Fields§
§code: ErrorCode
Error code for classification of errors (ex: ‘400’, ‘404’, ‘500’, etc.).
details: Option<ErrorDetails>
Additional details about the error, if available.
inner_error: Option<ErrorDetails>
Inner error object for nested errors, if applicable.
message: String
Human-readable error message.
target: Option<ErrorTarget>
Target of the error, if applicable (e.g., ‘schemaType’).
Trait Implementations§
Source§impl Clone for ServiceError
impl Clone for ServiceError
Source§fn clone(&self) -> ServiceError
fn clone(&self) -> ServiceError
Returns a copy of the value. Read more
1.0.0 · 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 ServiceError
impl Debug for ServiceError
Source§impl Display for ServiceError
impl Display for ServiceError
Source§impl Error for ServiceError
impl Error for ServiceError
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<ServiceError> for ErrorKind
impl From<ServiceError> for ErrorKind
Source§fn from(source: ServiceError) -> Self
fn from(source: ServiceError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ServiceError
impl RefUnwindSafe for ServiceError
impl Send for ServiceError
impl Sync for ServiceError
impl Unpin for ServiceError
impl UnwindSafe for ServiceError
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