pub struct GenericError {
pub error_code: i32,
pub error_message: String,
}Expand description
A Generic Error for simplification
Fields§
§error_code: i32Error Code
error_message: StringError message
Trait Implementations§
Source§impl Clone for GenericError
impl Clone for GenericError
Source§fn clone(&self) -> GenericError
fn clone(&self) -> GenericError
Returns a duplicate 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 GenericError
impl Debug for GenericError
Source§impl Display for GenericError
impl Display for GenericError
Source§impl<E: ErrorCode> From<E> for GenericError
impl<E: ErrorCode> From<E> for GenericError
Source§impl Ord for GenericError
impl Ord for GenericError
Source§fn cmp(&self, other: &GenericError) -> Ordering
fn cmp(&self, other: &GenericError) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for GenericError
impl PartialEq for GenericError
Source§impl PartialOrd for GenericError
impl PartialOrd for GenericError
impl Eq for GenericError
impl StructuralPartialEq for GenericError
Auto Trait Implementations§
impl Freeze for GenericError
impl RefUnwindSafe for GenericError
impl Send for GenericError
impl Sync for GenericError
impl Unpin for GenericError
impl UnsafeUnpin for GenericError
impl UnwindSafe for GenericError
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