pub struct Parameter {
pub name: String,
pub type: TypeRef,
pub required: bool,
pub documentation: Option<String>,
pub deprecated: bool,
pub style: Option<ParameterStyle>,
pub explode: bool,
pub allow_empty_value: bool,
pub allow_reserved: bool,
pub examples: Vec<(String, Example)>,
pub extensions: Vec<(String, ValueRef)>,
pub location: Option<SpecLocation>,
}Fields§
§name: String§type: TypeRef§required: bool§documentation: Option<String>§deprecated: bool§style: Option<ParameterStyle>§explode: bool§allow_empty_value: boolOAS allowEmptyValue. Permits ?foo= with no value. Only legal
on in: query; the parser warns and clears it for other
locations.
allow_reserved: boolOAS allowReserved. Permits raw RFC 3986 reserved chars in the
rendered query string. Defaults to false.
examples: Vec<(String, Example)>OAS example / examples for this parameter. Named entries;
3.0 example: <literal> lands under the synthetic key
"_default".
extensions: Vec<(String, ValueRef)>x-* extensions declared on the parameter. Compound extensions
drop with parser/W-EXTENSION-DROPPED.
location: Option<SpecLocation>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