#[non_exhaustive]pub struct SetSingleExample;Expand description
Removes the examples schema property and (if present) set its first value as the example
property.
This also applies to subschemas.
This is useful for dialects of JSON Schema (e.g. OpenAPI 3.0) that do not support the examples
property.
Trait Implementations§
Source§impl Clone for SetSingleExample
impl Clone for SetSingleExample
Source§impl Debug for SetSingleExample
impl Debug for SetSingleExample
Source§impl Default for SetSingleExample
impl Default for SetSingleExample
Auto Trait Implementations§
impl Freeze for SetSingleExample
impl RefUnwindSafe for SetSingleExample
impl Send for SetSingleExample
impl Sync for SetSingleExample
impl Unpin for SetSingleExample
impl UnsafeUnpin for SetSingleExample
impl UnwindSafe for SetSingleExample
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