#[non_exhaustive]pub struct ErrType { /* private fields */ }
Implementations§
Source§impl ErrType
impl ErrType
pub const fn err_segment(&self) -> ErrSegment
pub const fn set_err_segment(&mut self, val: ErrSegment) -> &mut Self
pub const fn with_err_segment(self, val: ErrSegment) -> Self
pub const fn text(&self) -> &'static str
pub const fn set_text(&mut self, val: &'static str) -> &mut Self
pub const fn with_text(self, val: &'static str) -> Self
Source§impl ErrType
impl ErrType
pub const fn new(err_segment: ErrSegment, text: &'static str) -> Self
pub const fn to_err_code(self) -> ErrCode
pub const fn new_err_code(self, mod_path: ModPath) -> ErrCode
pub fn new_api_error(self, mod_path: ModPath) -> ApiError
Trait Implementations§
Source§impl From<ErrType> for StatusCode
impl From<ErrType> for StatusCode
Source§impl From<StatusCode> for ErrType
impl From<StatusCode> for ErrType
Source§fn from(value: StatusCode) -> Self
fn from(value: StatusCode) -> Self
Converts to this type from the input type.
impl Copy for ErrType
impl Eq for ErrType
impl StructuralPartialEq for ErrType
Auto Trait Implementations§
impl Freeze for ErrType
impl RefUnwindSafe for ErrType
impl Send for ErrType
impl Sync for ErrType
impl Unpin for ErrType
impl UnwindSafe for ErrType
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