Struct teo::error::ActionError
source · [−]pub struct ActionError {
pub type: ActionErrorType,
pub message: String,
pub errors: Option<HashMap<String, String>>,
}
Fields
type: ActionErrorType
message: String
errors: Option<HashMap<String, String>>
Implementations
sourceimpl ActionError
impl ActionError
pub fn keys_unallowed() -> Self
pub fn action_unrecognized() -> Self
pub fn invalid_query_input(reason: impl Into<String>) -> Self
pub fn invalid_input(key: impl Into<String>, reason: impl Into<String>) -> Self
pub fn wrong_input_type() -> Self
pub fn wrong_where_type() -> Self
pub fn wrong_date_format() -> Self
pub fn wrong_datetime_format() -> Self
pub fn wrong_enum_choice() -> Self
pub fn unexpected_enum_value(field: impl Into<String>) -> Self
pub fn value_required(field: impl Into<String>) -> Self
pub fn unique_value_duplicated(field: impl Into<String>) -> Self
pub fn internal_server_error(reason: String) -> Self
pub fn unknown_database_write_error() -> Self
pub fn unknown_database_delete_error() -> Self
pub fn not_found() -> Self
pub fn wrong_json_format() -> Self
pub fn missing_action_name() -> Self
pub fn undefined_action() -> Self
pub fn unallowed_action() -> Self
pub fn missing_input_section() -> Self
pub fn object_not_found() -> Self
pub fn object_is_not_saved() -> Self
pub fn field_is_not_unique() -> Self
pub fn unknown_database_find_error() -> Self
pub fn unknown_database_find_unique_error() -> Self
pub fn unknown_database_count_error() -> Self
pub fn unmatched_data_type_in_database(field_name: &str) -> Self
pub fn undefined_enum_value() -> Self
pub fn missing_credentials() -> Self
pub fn multiple_auth_identity_provided() -> Self
pub fn multiple_auth_checker_provided() -> Self
pub fn missing_auth_identity() -> Self
pub fn missing_auth_checker() -> Self
pub fn authentication_failed() -> Self
pub fn invalid_jwt_token() -> Self
pub fn identity_is_not_found() -> Self
pub fn unexpected_null(field: impl Into<String>) -> Self
pub fn wrong_input_updator(field: impl Into<String>) -> Self
pub fn expected(
expected_json_type: impl Into<String>,
field: impl Into<String>
) -> Self
pub fn required_relation_cannot_disconnect() -> Self
pub fn new_object_cannot_disconnect() -> Self
Trait Implementations
sourceimpl Debug for ActionError
impl Debug for ActionError
sourceimpl PartialEq<ActionError> for ActionError
impl PartialEq<ActionError> for ActionError
sourcefn eq(&self, other: &ActionError) -> bool
fn eq(&self, other: &ActionError) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourceimpl Serialize for ActionError
impl Serialize for ActionError
impl Send for ActionError
impl StructuralPartialEq for ActionError
impl Sync for ActionError
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more