Struct tower_web::response::DefaultSerializer[][src]

pub struct DefaultSerializer<T = ()> { /* fields omitted */ }

Default serializer

Serializes responses into one of a number of common HTTP formats.

Methods

impl DefaultSerializer
[src]

Return a new DefaultSerializer value.

Trait Implementations

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

Formats the value using the given formatter. Read more

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T> Serializer for DefaultSerializer<T> where
    T: Serializer
[src]

A token used by Serializer implementations to identify the specific serialization format to use when encoding a value. Read more

Lookup a serializer and HeaderValue for the given Content-Type string. Read more

Serialize the value using the specified format.

impl<T, U> Chain<U> for DefaultSerializer<T>
[src]

The combined type

Combine self with other.

Auto Trait Implementations

impl<T> Send for DefaultSerializer<T> where
    T: Send

impl<T> Sync for DefaultSerializer<T> where
    T: Sync