pub struct InputRejection { /* private fields */ }Expand description
A stable client-visible failure produced while extracting an argument.
Implementations§
Source§impl InputRejection
impl InputRejection
pub fn new( status: u16, code: impl Into<String>, message: impl Into<String>, ) -> Self
pub fn with_details(self, details: Value) -> Self
pub fn into_execution_outcome(self) -> ExecutionOutcome
Trait Implementations§
Source§impl Clone for InputRejection
impl Clone for InputRejection
Source§fn clone(&self) -> InputRejection
fn clone(&self) -> InputRejection
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InputRejection
impl Debug for InputRejection
Source§impl PartialEq for InputRejection
impl PartialEq for InputRejection
impl StructuralPartialEq for InputRejection
Auto Trait Implementations§
impl Freeze for InputRejection
impl RefUnwindSafe for InputRejection
impl Send for InputRejection
impl Sync for InputRejection
impl Unpin for InputRejection
impl UnsafeUnpin for InputRejection
impl UnwindSafe for InputRejection
Blanket Implementations§
Source§impl<T> BackgroundExt for T
impl<T> BackgroundExt for T
fn background(self, task: BackgroundTask) -> Background<Self>
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