pub struct LazyQuery<'a, T> { /* private fields */ }
Expand description
lazy deserialize type. it lowers the deserialization to handler function where zero copy deserialize can happen.
Implementations§
Source§impl<T> LazyQuery<'_, T>
impl<T> LazyQuery<'_, T>
pub fn deserialize<'de>(&'de self) -> Result<T, Error>where
T: Deserialize<'de>,
Trait Implementations§
Source§impl<'a, 'r, C, B, T> FromRequest<'a, WebContext<'r, C, B>> for LazyQuery<'a, T>where
T: Deserialize<'static>,
impl<'a, 'r, C, B, T> FromRequest<'a, WebContext<'r, C, B>> for LazyQuery<'a, T>where
T: Deserialize<'static>,
Auto Trait Implementations§
impl<'a, T> Freeze for LazyQuery<'a, T>
impl<'a, T> RefUnwindSafe for LazyQuery<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for LazyQuery<'a, T>where
T: Send,
impl<'a, T> Sync for LazyQuery<'a, T>where
T: Sync,
impl<'a, T> Unpin for LazyQuery<'a, T>where
T: Unpin,
impl<'a, T> UnwindSafe for LazyQuery<'a, 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