Struct volo_http::extract::MaybeInvalid
source · pub struct MaybeInvalid<T>(/* private fields */);Implementations§
source§impl MaybeInvalid<String>
impl MaybeInvalid<String>
pub unsafe fn assume_valid(self) -> String
source§impl MaybeInvalid<FastStr>
impl MaybeInvalid<FastStr>
pub unsafe fn assume_valid(self) -> FastStr
Trait Implementations§
source§impl<T: Clone> Clone for MaybeInvalid<T>
impl<T: Clone> Clone for MaybeInvalid<T>
source§fn clone(&self) -> MaybeInvalid<T>
fn clone(&self) -> MaybeInvalid<T>
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<T: Debug> Debug for MaybeInvalid<T>
impl<T: Debug> Debug for MaybeInvalid<T>
source§impl<T: Default> Default for MaybeInvalid<T>
impl<T: Default> Default for MaybeInvalid<T>
source§fn default() -> MaybeInvalid<T>
fn default() -> MaybeInvalid<T>
Returns the “default value” for a type. Read more
source§impl<T, S: Sync> FromRequest<S> for MaybeInvalid<T>
impl<T, S: Sync> FromRequest<S> for MaybeInvalid<T>
type Rejection = RejectionError
async fn from_request( cx: &HttpContext, body: Incoming, state: &S ) -> Result<Self, Self::Rejection>
Auto Trait Implementations§
impl<T> RefUnwindSafe for MaybeInvalid<T>where
T: RefUnwindSafe,
impl<T> Send for MaybeInvalid<T>where
T: Send,
impl<T> Sync for MaybeInvalid<T>where
T: Sync,
impl<T> Unpin for MaybeInvalid<T>where
T: Unpin,
impl<T> UnwindSafe for MaybeInvalid<T>where
T: UnwindSafe,
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