pub struct OpenApiDisplay { /* private fields */ }Expand description
OpenAPI endpoint table display.
Implementations§
Source§impl OpenApiDisplay
impl OpenApiDisplay
Sourcepub fn new(mode: OutputMode) -> Self
pub fn new(mode: OutputMode) -> Self
Create a new OpenAPI display.
Sourcepub fn with_config(mode: OutputMode, config: OpenApiDisplayConfig) -> Self
pub fn with_config(mode: OutputMode, config: OpenApiDisplayConfig) -> Self
Create with custom configuration.
Sourcepub fn theme(self, theme: FastApiTheme) -> Self
pub fn theme(self, theme: FastApiTheme) -> Self
Set the theme.
Sourcepub fn render_summary(&self, summary: &OpenApiSummary) -> String
pub fn render_summary(&self, summary: &OpenApiSummary) -> String
Render an OpenAPI summary.
Sourcepub fn render_schema(&self, schema: &SchemaType, title: Option<&str>) -> String
pub fn render_schema(&self, schema: &SchemaType, title: Option<&str>) -> String
Render a schema type.
Trait Implementations§
Source§impl Clone for OpenApiDisplay
impl Clone for OpenApiDisplay
Source§fn clone(&self) -> OpenApiDisplay
fn clone(&self) -> OpenApiDisplay
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 moreAuto Trait Implementations§
impl Freeze for OpenApiDisplay
impl RefUnwindSafe for OpenApiDisplay
impl Send for OpenApiDisplay
impl Sync for OpenApiDisplay
impl Unpin for OpenApiDisplay
impl UnsafeUnpin for OpenApiDisplay
impl UnwindSafe for OpenApiDisplay
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