pub struct Parameter<S> {Show 23 fields
pub description: Option<String>,
pub in_: ParameterIn,
pub name: String,
pub required: bool,
pub schema: Option<S>,
pub data_type: Option<DataType>,
pub format: Option<DataTypeFormat>,
pub items: Option<Items>,
pub collection_format: Option<CollectionFormat>,
pub allow_empty_value: bool,
pub default: Option<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: bool,
pub multiple_of: Option<f32>,
pub enum_: Vec<Value>,
}
Expand description
Request parameter object.
https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#parameterObject
Fields§
§description: Option<String>
§in_: ParameterIn
§name: String
§required: bool
§schema: Option<S>
§data_type: Option<DataType>
§format: Option<DataTypeFormat>
§items: Option<Items>
§collection_format: Option<CollectionFormat>
§allow_empty_value: bool
§default: Option<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: bool
§multiple_of: Option<f32>
§enum_: Vec<Value>
Implementations§
Trait Implementations§
source§impl<'de, S> Deserialize<'de> for Parameter<S>where
S: Deserialize<'de>,
impl<'de, S> Deserialize<'de> for Parameter<S>where
S: Deserialize<'de>,
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 From<Parameter<DefaultSchemaRaw>> for Either<Parameter, Either<RequestBody, Option<Schema>>>
impl From<Parameter<DefaultSchemaRaw>> for Either<Parameter, Either<RequestBody, Option<Schema>>>
source§fn from(v2: DefaultParameterRaw) -> Self
fn from(v2: DefaultParameterRaw) -> Self
Converts to this type from the input type.
impl<S> StructuralPartialEq for Parameter<S>
Auto Trait Implementations§
impl<S> Freeze for Parameter<S>where
S: Freeze,
impl<S> RefUnwindSafe for Parameter<S>where
S: RefUnwindSafe,
impl<S> Send for Parameter<S>where
S: Send,
impl<S> Sync for Parameter<S>where
S: Sync,
impl<S> Unpin for Parameter<S>where
S: Unpin,
impl<S> UnwindSafe for Parameter<S>where
S: UnwindSafe,
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
)