pub struct Swagger { /* private fields */ }Implementations§
Source§impl Swagger
impl Swagger
pub fn new(version: &str, title: &str, description: &str) -> Swagger
pub fn add_server(&mut self, url: &str, description: &str) -> Server
pub fn set_server(&mut self, server: Server)
pub fn add_header(&mut self, key: &str, description: &str, example: &str)
pub fn add_components_bearer_token(&mut self)
pub fn add_components_header( &mut self, key: &str, description: &str, example: &str, )
pub fn set_global(&mut self, key: &str, example: &str, description: &str)
pub fn add_paths(&mut self, action: Box<dyn Action>)
pub fn add_path(&mut self, action: Box<dyn Action>)
pub fn add_tag_paths(&mut self, tag: &str, action: Box<dyn Action>)
pub fn json(&mut 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