pub struct ParseIntPipe;Expand description
Parses a string parameter into an i64.
§Errors
Returns a 400 Bad Request when the value is not a valid integer.
Trait Implementations§
Source§impl Clone for ParseIntPipe
impl Clone for ParseIntPipe
Source§fn clone(&self) -> ParseIntPipe
fn clone(&self) -> ParseIntPipe
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 ParseIntPipe
impl Debug for ParseIntPipe
Source§impl ParameterPipe for ParseIntPipe
impl ParameterPipe for ParseIntPipe
Source§fn transform<'a>(
&'a self,
value: ExtractedValue,
_context: &'a mut RequestContext,
) -> PipeFuture<'a>
fn transform<'a>( &'a self, value: ExtractedValue, _context: &'a mut RequestContext, ) -> PipeFuture<'a>
Transforms the erased value or returns a validation error.
Source§fn description(&self) -> &'static str
fn description(&self) -> &'static str
Returns a diagnostic name.
Auto Trait Implementations§
impl Freeze for ParseIntPipe
impl RefUnwindSafe for ParseIntPipe
impl Send for ParseIntPipe
impl Sync for ParseIntPipe
impl Unpin for ParseIntPipe
impl UnsafeUnpin for ParseIntPipe
impl UnwindSafe for ParseIntPipe
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