[][src]Struct rweb::Json

pub struct Json<T>(_);

Represents request body or response.

If it is in a parameter, content-type should be application/json and request body will be deserialized.

If it is in a return type, response will contain a content type header with value application/json, and value is serialized.

Implementations

impl<T> Json<T>[src]

pub fn into_inner(self) -> T[src]

Trait Implementations

impl<T: Clone> Clone for Json<T>[src]

impl<T: Copy> Copy for Json<T>[src]

impl<T: Debug> Debug for Json<T>[src]

impl<'de, T> Deserialize<'de> for Json<T> where
    T: Deserialize<'de>, 
[src]

impl<T> Entity for Json<T> where
    T: Entity
[src]

impl<T: Eq> Eq for Json<T>[src]

impl<T> From<T> for Json<T>[src]

impl<T> FromRequest for Json<T> where
    T: 'static + Send + DeserializeOwned
[src]

type Filter = BoxedFilter<(Json<T>,)>

Extract should be (Self,),

impl<T: Hash> Hash for Json<T>[src]

impl<T: Ord> Ord for Json<T>[src]

impl<T: PartialEq> PartialEq<Json<T>> for Json<T>[src]

impl<T: PartialOrd> PartialOrd<Json<T>> for Json<T>[src]

impl<T> Reply for Json<T> where
    T: Serialize + Send
[src]

impl<T> ResponseEntity for Json<T> where
    T: Entity
[src]

impl<T> Serialize for Json<T> where
    T: Serialize
[src]

impl<T> StructuralEq for Json<T>[src]

impl<T> StructuralPartialEq for Json<T>[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<!> for T[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,