pub struct Parameter {
pub name: String,
pub location: ParameterLocation,
pub required: Option<bool>,
pub schema: Option<ReferenceOrSchema>,
pub unique_items: Option<bool>,
pub type_: Option<String>,
pub format: Option<String>,
pub description: Option<String>,
pub items: Option<ReferenceOrSchema>,
pub default: Option<Value>,
pub collection_format: Option<String>,
}
Available on crate feature
v2
only.Fields§
§name: String
§location: ParameterLocation
§required: Option<bool>
§schema: Option<ReferenceOrSchema>
Only relevant for ParameterLocation::Body
unique_items: Option<bool>
§type_: Option<String>
§format: Option<String>
§description: Option<String>
§items: Option<ReferenceOrSchema>
Required if type is array.
default: Option<Value>
§collection_format: Option<String>
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Parameter
impl<'de> Deserialize<'de> for Parameter
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
impl StructuralPartialEq for Parameter
Auto Trait Implementations§
impl Freeze for Parameter
impl RefUnwindSafe for Parameter
impl Send for Parameter
impl Sync for Parameter
impl Unpin for Parameter
impl UnwindSafe for Parameter
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