Struct tower_web::response::SerializerContext[][src]

pub struct SerializerContext<'a> { /* fields omitted */ }

Context passed to Serializer::serialize

SerializerContext contains context obtained when deriving Response.

Methods

impl<'a> SerializerContext<'a>
[src]

Returns a reference to the original request

Returns the module in which the impl_web! was used to implement the resource.

Returns the name of the resource handling the request.

Returns the name of the function handling the request.

Returns the template value set for the response.

Trait Implementations

impl<'a> Debug for SerializerContext<'a>
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl<'a> Send for SerializerContext<'a>

impl<'a> Sync for SerializerContext<'a>