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