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]
impl<'a> SerializerContext<'a>pub fn request(&self) -> &Request<()>[src]
pub fn request(&self) -> &Request<()>Returns a reference to the original request
pub fn resource_mod(&self) -> Option<&str>[src]
pub fn resource_mod(&self) -> Option<&str>Returns the module in which the impl_web! was used to implement the resource.
pub fn resource_name(&self) -> Option<&str>[src]
pub fn resource_name(&self) -> Option<&str>Returns the name of the resource handling the request.
pub fn handler_name(&self) -> Option<&str>[src]
pub fn handler_name(&self) -> Option<&str>Returns the name of the function handling the request.
pub fn template(&self) -> Option<&str>[src]
pub fn template(&self) -> Option<&str>Returns the template value set for the response.
Trait Implementations
impl<'a> Debug for SerializerContext<'a>[src]
impl<'a> Debug for SerializerContext<'a>Auto Trait Implementations
impl<'a> Send for SerializerContext<'a>
impl<'a> Send for SerializerContext<'a>impl<'a> Sync for SerializerContext<'a>
impl<'a> Sync for SerializerContext<'a>