Struct poem_openapi::ExtraHeader
source · pub struct ExtraHeader { /* private fields */ }
Expand description
An extra header
Implementations§
source§impl ExtraHeader
impl ExtraHeader
sourcepub fn new(name: impl AsRef<str>) -> ExtraHeader
pub fn new(name: impl AsRef<str>) -> ExtraHeader
Create a extra header object by name.
sourcepub fn description(self, description: impl Into<String>) -> Self
pub fn description(self, description: impl Into<String>) -> Self
Sets a description of the extra header.
sourcepub fn deprecated(self) -> Self
pub fn deprecated(self) -> Self
Specifies this header is deprecated.