pub struct Error {
    pub name: String,
    pub description: String,
    pub exit_code: i32,
}Expand description
Error object.
Use Error::new() to create error objects instead of using this struct.
§Parameters
- name: The errors name.
- description: The error description.
- exit_code: The errors exit code.
§Returns
A new Error object with the specified name and description.
§Examples
localizer_rs::errors::Error {
    name: "name".to_owned(),
    description: "description".to_owned(),
    exit_code: 1
};Fields§
§name: StringThe errors name.
description: StringThe error description.
exit_code: i32The errors exit code.
Implementations§
Trait Implementations§
Source§impl Display for Error
Display implementation for the error object.
 
impl Display for Error
Display implementation for the error object.
Source§impl Ord for Error
 
impl Ord for Error
Source§impl PartialOrd for Error
 
impl PartialOrd for Error
impl Eq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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