Struct actix_easy_multipart::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
sourceimpl<T: DeserializeOwned> Text<T>
impl<T: DeserializeOwned> Text<T>
pub fn into_inner(self) -> T
Trait Implementations
sourceimpl<T: Debug + DeserializeOwned> Debug for Text<T>
impl<T: Debug + DeserializeOwned> Debug for Text<T>
sourceimpl<T: DeserializeOwned> Deref for Text<T>
impl<T: DeserializeOwned> Deref for Text<T>
sourceimpl<T: DeserializeOwned> DerefMut for Text<T>
impl<T: DeserializeOwned> DerefMut for Text<T>
sourceimpl<'t, T: DeserializeOwned + 'static> FieldReader<'t> for Text<T>
impl<'t, T: DeserializeOwned + 'static> FieldReader<'t> for Text<T>
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T, P> Resource for Twhere
T: DerefMut<Target = Path<P>>,
P: ResourcePath,
impl<T, P> Resource for Twhere
T: DerefMut<Target = Path<P>>,
P: ResourcePath,
type Path = P
type Path = P
Type of resource’s path returned in
resource_path
.