pub struct Options {
pub title: String,
pub version: String,
pub description: Option<String>,
pub servers: Vec<ServerInfo>,
}Expand description
Top-level options for the generated spec. The OpenAPI info object plus
an optional servers list.
Fields§
§title: StringThe API title (OpenAPI info.title).
version: StringThe API version (OpenAPI info.version).
description: Option<String>An optional API description (OpenAPI info.description).
servers: Vec<ServerInfo>The base URLs the API is served at (OpenAPI servers).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Options
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnsafeUnpin for Options
impl UnwindSafe for Options
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