pub enum MediaTypeExamples {
Examples {
examples: BTreeMap<String, ObjectOrReference<Example>>,
},
Example {
example: Value,
},
}Expand description
Examples for a media type.
Variants§
Examples
Examples of the media type.
Fields
§
examples: BTreeMap<String, ObjectOrReference<Example>>Example
Example of the media type.
Implementations§
Source§impl MediaTypeExamples
impl MediaTypeExamples
Sourcepub fn resolve_all(&self, spec: &OpenApiV31Spec) -> BTreeMap<String, Example>
pub fn resolve_all(&self, spec: &OpenApiV31Spec) -> BTreeMap<String, Example>
Resolves references and returns a map of provided examples keyed by name.
Trait Implementations§
Source§impl Clone for MediaTypeExamples
impl Clone for MediaTypeExamples
Source§fn clone(&self) -> MediaTypeExamples
fn clone(&self) -> MediaTypeExamples
Returns a duplicate 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 MediaTypeExamples
impl Debug for MediaTypeExamples
Source§impl Default for MediaTypeExamples
impl Default for MediaTypeExamples
Source§impl<'de> Deserialize<'de> for MediaTypeExamples
impl<'de> Deserialize<'de> for MediaTypeExamples
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 PartialEq for MediaTypeExamples
impl PartialEq for MediaTypeExamples
Source§impl Serialize for MediaTypeExamples
impl Serialize for MediaTypeExamples
impl StructuralPartialEq for MediaTypeExamples
Auto Trait Implementations§
impl Freeze for MediaTypeExamples
impl RefUnwindSafe for MediaTypeExamples
impl Send for MediaTypeExamples
impl Sync for MediaTypeExamples
impl Unpin for MediaTypeExamples
impl UnsafeUnpin for MediaTypeExamples
impl UnwindSafe for MediaTypeExamples
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