Struct actix_multipart::form::json::Json
source · pub struct Json<T: DeserializeOwned>(pub T);
Expand description
Deserialize from JSON.
Tuple Fields§
§0: T
Implementations§
source§impl<T: DeserializeOwned> Json<T>
impl<T: DeserializeOwned> Json<T>
pub fn into_inner(self) -> T
Trait Implementations§
source§impl<T: DeserializeOwned> Deref for Json<T>
impl<T: DeserializeOwned> Deref for Json<T>
source§impl<T: DeserializeOwned> DerefMut for Json<T>
impl<T: DeserializeOwned> DerefMut for Json<T>
source§impl<'t, T> FieldReader<'t> for Json<T>where
T: DeserializeOwned + 'static,
impl<'t, T> FieldReader<'t> for Json<T>where
T: DeserializeOwned + 'static,
§type Future = Pin<Box<dyn Future<Output = Result<Json<T>, MultipartError>> + 't>>
type Future = Pin<Box<dyn Future<Output = Result<Json<T>, MultipartError>> + 't>>
Future that resolves to a
Self
.source§fn read_field(
req: &'t HttpRequest,
field: Field,
limits: &'t mut Limits
) -> Self::Future
fn read_field( req: &'t HttpRequest, field: Field, limits: &'t mut Limits ) -> Self::Future
The form will call this function to handle the field.
Auto Trait Implementations§
impl<T> RefUnwindSafe for Json<T>where
T: RefUnwindSafe,
impl<T> Send for Json<T>where
T: Send,
impl<T> Sync for Json<T>where
T: Sync,
impl<T> Unpin for Json<T>where
T: Unpin,
impl<T> UnwindSafe for Json<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