pub struct CommonApiError {
pub kind: CommonErrorKind,
pub msg: String,
}Expand description
Errors common to all ApiErrors.
- This is an intermediate error type which should only be used in API
library code (e.g.
RestClient,lexe_api::server) which cannot assume a specific API error type. ApiErrors andApiErrorKinds must implFrom<CommonApiError>andFrom<CommonErrorKind>respectively to ensure all cases are covered.
Fields§
§kind: CommonErrorKind§msg: StringImplementations§
Trait Implementations§
Source§impl Display for CommonApiError
impl Display for CommonApiError
Source§impl From<CommonApiError> for BackendApiError
impl From<CommonApiError> for BackendApiError
Source§fn from(common_error: CommonApiError) -> Self
fn from(common_error: CommonApiError) -> Self
Converts to this type from the input type.
Source§impl From<CommonApiError> for ErrorResponse
impl From<CommonApiError> for ErrorResponse
Source§fn from(_: CommonApiError) -> Self
fn from(_: CommonApiError) -> Self
Converts to this type from the input type.
Source§impl From<CommonApiError> for GatewayApiError
impl From<CommonApiError> for GatewayApiError
Source§fn from(common_error: CommonApiError) -> Self
fn from(common_error: CommonApiError) -> Self
Converts to this type from the input type.
Source§impl From<CommonApiError> for LspApiError
impl From<CommonApiError> for LspApiError
Source§fn from(common_error: CommonApiError) -> Self
fn from(common_error: CommonApiError) -> Self
Converts to this type from the input type.
Source§impl From<CommonApiError> for MegaApiError
impl From<CommonApiError> for MegaApiError
Source§fn from(common_error: CommonApiError) -> Self
fn from(common_error: CommonApiError) -> Self
Converts to this type from the input type.
Source§impl From<CommonApiError> for NodeApiError
impl From<CommonApiError> for NodeApiError
Source§fn from(common_error: CommonApiError) -> Self
fn from(common_error: CommonApiError) -> Self
Converts to this type from the input type.
Source§impl From<CommonApiError> for RunnerApiError
impl From<CommonApiError> for RunnerApiError
Source§fn from(common_error: CommonApiError) -> Self
fn from(common_error: CommonApiError) -> Self
Converts to this type from the input type.
Source§impl From<CommonApiError> for SdkApiError
impl From<CommonApiError> for SdkApiError
Source§fn from(common_error: CommonApiError) -> Self
fn from(common_error: CommonApiError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CommonApiError
impl RefUnwindSafe for CommonApiError
impl Send for CommonApiError
impl Sync for CommonApiError
impl Unpin for CommonApiError
impl UnsafeUnpin for CommonApiError
impl UnwindSafe for CommonApiError
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