pub struct Header {
pub description: Option<String>,
pub required: Option<bool>,
pub deprecated: Option<bool>,
pub allow_empty_value: Option<bool>,
pub style: Option<String>,
pub explode: Option<bool>,
pub allow_reserved: Option<bool>,
pub schema: Option<MayBeRef<Schema>>,
pub examples: Option<IndexMap<String, MayBeRef<Value>>>,
pub content: Option<IndexMap<String, MediaType>>,
pub custom_fields: IndexMap<String, Value>,
}
Fields§
§description: Option<String>
§required: Option<bool>
§deprecated: Option<bool>
§allow_empty_value: Option<bool>
§style: Option<String>
§explode: Option<bool>
§allow_reserved: Option<bool>
§schema: Option<MayBeRef<Schema>>
§examples: Option<IndexMap<String, MayBeRef<Value>>>
§content: Option<IndexMap<String, MediaType>>
§custom_fields: IndexMap<String, Value>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Header
impl<'de> Deserialize<'de> for Header
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Diff<Header, HeaderDiff, HttpSchemaDiffContext> for Header
impl Diff<Header, HeaderDiff, HttpSchemaDiffContext> for Header
fn diff( &self, new: Option<&Header>, context: &HttpSchemaDiffContext, ) -> DiffResult<HeaderDiff>
Auto Trait Implementations§
impl Freeze for Header
impl RefUnwindSafe for Header
impl Send for Header
impl Sync for Header
impl Unpin for Header
impl UnwindSafe for Header
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more