pub enum OpenApiOperationSource {
Collapsed,
Trimmed,
Hidden,
}Expand description
How to render the raw OpenAPI operation YAML/JSON on operation pages.
Renderer-local option; not serialized on the wire.
Variants§
Collapsed
Wrap the full operation definition in a collapsed HTML <details> block.
Trimmed
Omit fields already rendered in structured sections (parameters, responses, etc.).
Hidden
Omit the operation definition fence entirely.
Trait Implementations§
Source§impl Clone for OpenApiOperationSource
impl Clone for OpenApiOperationSource
Source§fn clone(&self) -> OpenApiOperationSource
fn clone(&self) -> OpenApiOperationSource
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for OpenApiOperationSource
Source§impl Debug for OpenApiOperationSource
impl Debug for OpenApiOperationSource
Source§impl Default for OpenApiOperationSource
impl Default for OpenApiOperationSource
Source§fn default() -> OpenApiOperationSource
fn default() -> OpenApiOperationSource
Returns the “default value” for a type. Read more
impl Eq for OpenApiOperationSource
Source§impl PartialEq for OpenApiOperationSource
impl PartialEq for OpenApiOperationSource
Source§fn eq(&self, other: &OpenApiOperationSource) -> bool
fn eq(&self, other: &OpenApiOperationSource) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for OpenApiOperationSource
Auto Trait Implementations§
impl Freeze for OpenApiOperationSource
impl RefUnwindSafe for OpenApiOperationSource
impl Send for OpenApiOperationSource
impl Sync for OpenApiOperationSource
impl Unpin for OpenApiOperationSource
impl UnsafeUnpin for OpenApiOperationSource
impl UnwindSafe for OpenApiOperationSource
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