#[non_exhaustive]pub enum ApprovalRoutingError {
UnofferedChoice {
approval_id: String,
choice_id: String,
available_choice_ids: Vec<String>,
},
FeedbackNotAccepted {
approval_id: String,
choice_id: String,
feedback_choice_ids: Vec<String>,
},
}Expand description
A local approval decision that cannot be submitted safely.
New refusals may be added, so a match on this enum needs a catch-all arm.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
UnofferedChoice
The handler picked a choice the request did not offer.
Fields
FeedbackNotAccepted
The handler attached feedback to a choice that does not accept it.
Trait Implementations§
Source§impl Clone for ApprovalRoutingError
impl Clone for ApprovalRoutingError
Source§impl Debug for ApprovalRoutingError
impl Debug for ApprovalRoutingError
Source§impl Display for ApprovalRoutingError
impl Display for ApprovalRoutingError
impl Eq for ApprovalRoutingError
Source§impl Error for ApprovalRoutingError
impl Error for ApprovalRoutingError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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§impl PartialEq for ApprovalRoutingError
impl PartialEq for ApprovalRoutingError
impl StructuralPartialEq for ApprovalRoutingError
Auto Trait Implementations§
impl Freeze for ApprovalRoutingError
impl RefUnwindSafe for ApprovalRoutingError
impl Send for ApprovalRoutingError
impl Sync for ApprovalRoutingError
impl Unpin for ApprovalRoutingError
impl UnsafeUnpin for ApprovalRoutingError
impl UnwindSafe for ApprovalRoutingError
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