pub struct Info {
pub title: String,
pub version: String,
pub description: Option<String>,
pub server: Option<String>,
pub prefix: String,
}Expand description
What the generated document says about the API as a whole.
Fields§
§title: String§version: String§description: Option<String>§server: Option<String>The base URL clients should call.
prefix: StringPaths under this prefix are documented; everything else is skipped.
Defaults to /api, because a browser-facing page is not an API and
documenting it produces noise nobody reads.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Info
impl RefUnwindSafe for Info
impl Send for Info
impl Sync for Info
impl Unpin for Info
impl UnsafeUnpin for Info
impl UnwindSafe for Info
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