#[non_exhaustive]pub struct ErrDecl {
pub err_type: ErrType,
pub err_path: ErrPath,
}
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.err_type: ErrType
§err_path: ErrPath
Implementations§
Source§impl ErrDecl
impl ErrDecl
pub const fn new(err_type: ErrType, err_path: ErrPath) -> Self
pub const fn err_flag(&self) -> i32
pub const fn err_path_flag(&self) -> i32
pub const fn text(&self) -> &'static str
pub const fn err_type(&self) -> &ErrType
pub const fn err_path(&self) -> &ErrPath
pub const fn extract(&self) -> ErrBrief
pub fn api_error(&self) -> ApiError
Trait Implementations§
Source§impl Ord for ErrDecl
impl Ord for ErrDecl
Source§impl PartialOrd for ErrDecl
impl PartialOrd for ErrDecl
impl Collect for ErrDecl
impl Copy for ErrDecl
impl Eq for ErrDecl
impl StructuralPartialEq for ErrDecl
Auto Trait Implementations§
impl Freeze for ErrDecl
impl RefUnwindSafe for ErrDecl
impl Send for ErrDecl
impl Sync for ErrDecl
impl Unpin for ErrDecl
impl UnwindSafe for ErrDecl
Blanket Implementations§
Source§impl<Data> ApiSuccessResponse for Data
impl<Data> ApiSuccessResponse for Data
fn api_response<Meta>(self, meta: Option<Meta>) -> ApiResponse<Self, Meta>
fn api_response_without_meta<Meta>(self) -> ApiResponse<Self, Meta>
fn api_response_with_meta<Meta>(self, meta: Meta) -> ApiResponse<Self, Meta>
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