pub enum ApprovalError<AuthErr, AppErr> {
UnauthorizedAccount(UnauthorizedAccountError<AuthErr>),
ApprovalError(AppErr),
}
Expand description
Top-level errors that may occur when attempting to approve a request
Variants§
The account is not allowed to act on requests
ApprovalError(AppErr)
The approval function encountered another error
Trait Implementations§
source§impl<AuthErr: Clone, AppErr: Clone> Clone for ApprovalError<AuthErr, AppErr>
impl<AuthErr: Clone, AppErr: Clone> Clone for ApprovalError<AuthErr, AppErr>
source§fn clone(&self) -> ApprovalError<AuthErr, AppErr>
fn clone(&self) -> ApprovalError<AuthErr, AppErr>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<AuthErr, AppErr> Display for ApprovalError<AuthErr, AppErr>where
UnauthorizedAccountError<AuthErr>: Display,
AppErr: Display,
impl<AuthErr, AppErr> Display for ApprovalError<AuthErr, AppErr>where
UnauthorizedAccountError<AuthErr>: Display,
AppErr: Display,
source§impl<AuthErr, AppErr> Error for ApprovalError<AuthErr, AppErr>where
UnauthorizedAccountError<AuthErr>: Error,
Self: Debug + Display,
impl<AuthErr, AppErr> Error for ApprovalError<AuthErr, AppErr>where
UnauthorizedAccountError<AuthErr>: Error,
Self: Debug + Display,
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§fn from(source: UnauthorizedAccountError<AuthErr>) -> Self
fn from(source: UnauthorizedAccountError<AuthErr>) -> Self
Converts to this type from the input type.