pub enum ViewApiError {
Disabled,
Forbidden(&'static str),
Model(ModelError),
View(ViewError),
}Variants§
Trait Implementations§
Source§impl From<AllSourceError> for ViewApiError
impl From<AllSourceError> for ViewApiError
Source§fn from(error: AllSourceError) -> Self
fn from(error: AllSourceError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for ViewApiError
impl From<Error> for ViewApiError
Source§impl From<ModelError> for ViewApiError
impl From<ModelError> for ViewApiError
Source§fn from(error: ModelError) -> Self
fn from(error: ModelError) -> Self
Converts to this type from the input type.
Source§impl From<ViewError> for ViewApiError
impl From<ViewError> for ViewApiError
Source§impl IntoResponse for ViewApiError
impl IntoResponse for ViewApiError
Source§fn into_response(self) -> Response
fn into_response(self) -> Response
Create a response.
Auto Trait Implementations§
impl !RefUnwindSafe for ViewApiError
impl !UnwindSafe for ViewApiError
impl Freeze for ViewApiError
impl Send for ViewApiError
impl Sync for ViewApiError
impl Unpin for ViewApiError
impl UnsafeUnpin for ViewApiError
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