Struct actix_multipart::form::text::Text
source · pub struct Text<T: DeserializeOwned>(pub T);
Expand description
Deserialize from plain text.
Internally this uses [serde_plain
] for deserialization, which supports primitive types
including strings, numbers, and simple enums.
Tuple Fields§
§0: T
Implementations§
source§impl<T: DeserializeOwned> Text<T>
impl<T: DeserializeOwned> Text<T>
sourcepub fn into_inner(self) -> T
pub fn into_inner(self) -> T
Unwraps into inner value.
Trait Implementations§
source§impl<T: DeserializeOwned> Deref for Text<T>
impl<T: DeserializeOwned> Deref for Text<T>
source§impl<T: DeserializeOwned> DerefMut for Text<T>
impl<T: DeserializeOwned> DerefMut for Text<T>
source§impl<'t, T> FieldReader<'t> for Text<T>where
T: DeserializeOwned + 'static,
impl<'t, T> FieldReader<'t> for Text<T>where
T: DeserializeOwned + 'static,
Auto Trait Implementations§
impl<T> Freeze for Text<T>where
T: Freeze,
impl<T> RefUnwindSafe for Text<T>where
T: RefUnwindSafe,
impl<T> Send for Text<T>where
T: Send,
impl<T> Sync for Text<T>where
T: Sync,
impl<T> Unpin for Text<T>where
T: Unpin,
impl<T> UnwindSafe for Text<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