Skip to main content

ResponseExt

Trait ResponseExt 

Source
pub trait ResponseExt: Sized {
    // Provided method
    fn header(
        self,
        name: impl Into<String>,
        value: impl Into<String>,
    ) -> WithHeaders<Self> { ... }
}
Expand description

Ergonomic response decoration shared by typed success responses.

Provided Methods§

Source

fn header( self, name: impl Into<String>, value: impl Into<String>, ) -> WithHeaders<Self>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T> ResponseExt for T