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)
pub fn add_components_bearer_token(&mut self)
pub fn set_global(&mut self, key: &str, description: &str, example: &str)
pub fn add_paths(&mut self, 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)