pub struct OpenApi { /* private fields */ }Implementations§
Source§impl OpenApi
impl OpenApi
pub fn new(title: impl Into<String>, version: impl Into<String>) -> OpenApi
pub fn server(self, server: Server) -> OpenApi
pub fn security_scheme( self, name: impl Into<String>, scheme: SecurityScheme, ) -> OpenApi
pub fn security(self, requirement: SecurityRequirement) -> OpenApi
pub fn scalar_config(self, scalar: Scalar) -> OpenApi
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OpenApi
impl RefUnwindSafe for OpenApi
impl Send for OpenApi
impl Sync for OpenApi
impl Unpin for OpenApi
impl UnsafeUnpin for OpenApi
impl UnwindSafe for OpenApi
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