pub struct OpenApiConfig {
pub path: Option<String>,
pub theme: Option<String>,
pub nonce: Option<String>,
pub disable_default_reference: bool,
pub include_native_extensions: bool,
}Fields§
§path: Option<String>§theme: Option<String>§nonce: Option<String>§disable_default_reference: bool§include_native_extensions: boolInclude native Rust extensions; defaults to pinned-equivalent documentation.
Implementations§
Source§impl OpenApiConfig
impl OpenApiConfig
pub fn path(self, path: impl Into<String>) -> Self
pub fn theme(self, theme: impl Into<String>) -> Self
pub fn nonce(self, nonce: impl Into<String>) -> Self
pub const fn include_native_extensions(self, included: bool) -> Self
pub const fn disable_default_reference(self, disabled: bool) -> Self
Trait Implementations§
Source§impl Clone for OpenApiConfig
impl Clone for OpenApiConfig
Source§impl Debug for OpenApiConfig
impl Debug for OpenApiConfig
Auto Trait Implementations§
impl Freeze for OpenApiConfig
impl RefUnwindSafe for OpenApiConfig
impl Send for OpenApiConfig
impl Sync for OpenApiConfig
impl Unpin for OpenApiConfig
impl UnsafeUnpin for OpenApiConfig
impl UnwindSafe for OpenApiConfig
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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