pub struct Swagger { /* private fields */ }Implementations§
Source§impl Swagger
impl Swagger
pub fn new(version: &str, title: &str, description: &str) -> Self
pub fn create_server(url: &str, description: &str) -> Server
pub fn add_server(&mut self, url: &str, description: &str) -> Server
pub fn with_server(&mut self, url: &str, description: &str) -> &mut Self
pub fn push_server(&mut self, server: Server) -> &mut Self
pub fn set_server(&mut self, server: Server)
pub fn add_header( &mut self, key: &str, description: &str, example: &str, ) -> &mut Self
pub fn add_components_bearer_token(&mut self) -> &mut Self
pub fn add_components_header( &mut self, key: &str, description: &str, example: &str, ) -> &mut Self
pub fn set_global( &mut self, key: &str, example: &str, description: &str, ) -> &mut Self
pub fn add_paths(&mut self, action: Box<dyn Action>) -> &mut Self
pub fn add_path(&mut self, action: Box<dyn Action>) -> &mut Self
pub fn add_tag_paths(&mut self, tag: &str, action: Box<dyn Action>) -> &mut Self
pub fn json(&self) -> JsonValue
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Swagger
impl RefUnwindSafe for Swagger
impl Send for Swagger
impl Sync for Swagger
impl Unpin for Swagger
impl UnwindSafe for Swagger
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