pub enum ParameterDefinition {
Schema(ReferenceOr<Schema>),
Content(BTreeMap<String, MediaType>),
}
Variants§
Schema(ReferenceOr<Schema>)
The schema defining the type used for the parameter.
Content(BTreeMap<String, MediaType>)
A map containing the representations for the parameter. The key is the media type and the value describes it. The map MUST only contain one entry.
Trait Implementations§
Source§impl Clone for ParameterDefinition
impl Clone for ParameterDefinition
Source§fn clone(&self) -> ParameterDefinition
fn clone(&self) -> ParameterDefinition
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ParameterDefinition
impl Debug for ParameterDefinition
Auto Trait Implementations§
impl Freeze for ParameterDefinition
impl RefUnwindSafe for ParameterDefinition
impl Send for ParameterDefinition
impl Sync for ParameterDefinition
impl Unpin for ParameterDefinition
impl UnwindSafe for ParameterDefinition
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