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<MayBeRef310<Schema>>,
pub example: Option<Value>,
pub examples: Option<IndexMap<String, MayBeRef310<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<MayBeRef310<Schema>>
§example: Option<Value>
§examples: Option<IndexMap<String, MayBeRef310<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
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