pub struct Parameter {Show 13 fields
pub name: String,
pub in: String,
pub description: Option<String>,
pub required: Option<bool>,
pub deprecated: Option<bool>,
pub allow_empty_value: Option<bool>,
pub style: Option<String>,
pub explode: Option<bool>,
pub allow_reserved: Option<bool>,
pub schema: Option<MayBeRef<Schema>>,
pub examples: Option<IndexMap<String, MayBeRef<Value>>>,
pub content: Option<IndexMap<String, MediaType>>,
pub custom_fields: IndexMap<String, Value>,
}
Fields§
§name: String
§in: String
§description: Option<String>
§required: Option<bool>
§deprecated: Option<bool>
§allow_empty_value: Option<bool>
§style: Option<String>
§explode: Option<bool>
§allow_reserved: Option<bool>
§schema: Option<MayBeRef<Schema>>
§examples: Option<IndexMap<String, MayBeRef<Value>>>
§content: Option<IndexMap<String, MediaType>>
§custom_fields: IndexMap<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
Source§impl Diff<Parameter, ParameterDiff, HttpSchemaDiffContext> for Parameter
impl Diff<Parameter, ParameterDiff, HttpSchemaDiffContext> for Parameter
fn diff( &self, new: Option<&Parameter>, context: &HttpSchemaDiffContext, ) -> DiffResult<ParameterDiff>
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