pub struct Parameter {Show 14 fields
pub name: String,
pub location: ParameterIn,
pub description: Option<String>,
pub required: Option<bool>,
pub deprecated: Option<bool>,
pub allow_empty_value: Option<bool>,
pub style: Option<ParameterStyle>,
pub explode: Option<bool>,
pub allow_reserved: Option<bool>,
pub schema: Option<ObjectOrReference<ObjectSchema>>,
pub example: Option<Value>,
pub examples: BTreeMap<String, ObjectOrReference<Example>>,
pub content: Option<BTreeMap<String, MediaType>>,
pub extensions: BTreeMap<String, Value>,
}Expand description
Describes a single operation parameter.
Fields§
§name: String§location: ParameterIn§description: Option<String>§required: Option<bool>§deprecated: Option<bool>§allow_empty_value: Option<bool>§style: Option<ParameterStyle>§explode: Option<bool>§allow_reserved: Option<bool>§schema: Option<ObjectOrReference<ObjectSchema>>§example: Option<Value>§examples: BTreeMap<String, ObjectOrReference<Example>>§content: Option<BTreeMap<String, MediaType>>§extensions: BTreeMap<String, Value>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 UnsafeUnpin 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