pub struct Header {Show 18 fields
pub description: Option<String>,
pub data_type: Option<DataType>,
pub format: Option<DataTypeFormat>,
pub items: Option<Items>,
pub collection_format: Option<CollectionFormat>,
pub default: Option<Value>,
pub enum_: Vec<Value>,
pub maximum: Option<f32>,
pub exclusive_maximum: Option<bool>,
pub minimum: Option<f32>,
pub exclusive_minimum: Option<bool>,
pub max_length: Option<u32>,
pub min_length: Option<u32>,
pub pattern: Option<String>,
pub max_items: Option<u32>,
pub min_items: Option<u32>,
pub unique_items: Option<bool>,
pub multiple_of: Option<f32>,
}
Expand description
Fields§
§description: Option<String>
§data_type: Option<DataType>
§format: Option<DataTypeFormat>
§items: Option<Items>
§collection_format: Option<CollectionFormat>
§default: Option<Value>
§enum_: Vec<Value>
§maximum: Option<f32>
§exclusive_maximum: Option<bool>
§minimum: Option<f32>
§exclusive_minimum: Option<bool>
§max_length: Option<u32>
§min_length: Option<u32>
§pattern: Option<String>
§max_items: Option<u32>
§min_items: Option<u32>
§unique_items: Option<bool>
§multiple_of: Option<f32>
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)