Struct openapi_schema::v2::Header  
source · pub struct Header {Show 19 fields
    pub description: Option<String>,
    pub type: ItemsType,
    pub format: Option<String>,
    pub items: Option<Box<Items>>,
    pub collection_format: Option<String>,
    pub default: Option<Value>,
    pub maximum: Option<Number>,
    pub exclusive_maximum: Option<bool>,
    pub minimum: Option<Number>,
    pub exclusive_minimum: Option<bool>,
    pub max_length: Option<Value>,
    pub min_length: Option<Number>,
    pub pattern: Option<String>,
    pub max_items: Option<Number>,
    pub min_items: Option<Number>,
    pub unique_items: Option<bool>,
    pub enum: Option<Vec<Value>>,
    pub multiple_of: Option<Number>,
    pub extensions: Extensions,
}Expand description
Fields§
§description: Option<String>A short description of the header.
type: ItemsTypeThe internal type of the array. The value MUST be one of “string”, “number”, “integer”, “boolean”, or “array”. Files and models are not allowed.
format: Option<String>The extending format for the previously mentioned type. See Data Type Formats for further details.
items: Option<Box<Items>>Required if type is “array”. Describes the type of items in the array.
collection_format: Option<String>Determines the format of the array if type array is used.
default: Option<Value>Declares the value of the parameter that the server will use if none is provided, for example a “count” to control the number of results per page might default to 100 if not supplied by the client in the request. (Note: “default” has no meaning for required parameters.)
maximum: Option<Number>§exclusive_maximum: Option<bool>§minimum: Option<Number>§exclusive_minimum: Option<bool>§max_length: Option<Value>§min_length: Option<Number>§pattern: Option<String>§max_items: Option<Number>§min_items: Option<Number>§unique_items: Option<bool>§enum: Option<Vec<Value>>§multiple_of: Option<Number>§extensions: ExtensionsTrait 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 PartialEq<Header> for Header
 
impl PartialEq<Header> for Header
impl StructuralPartialEq for Header
Auto Trait Implementations§
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