pub struct OpenApiInfo {
pub title: String,
pub version: String,
pub description: Option<String>,
pub servers: Vec<OpenApiServer>,
pub external_docs: Option<OpenApiExternalDocs>,
pub tags: Vec<OpenApiTag>,
}Expand description
Basic OpenAPI document information.
Fields§
§title: String§version: String§description: Option<String>§servers: Vec<OpenApiServer>§external_docs: Option<OpenApiExternalDocs>Implementations§
Source§impl OpenApiInfo
impl OpenApiInfo
pub fn new(title: impl Into<String>, version: impl Into<String>) -> Self
pub fn with_description(self, description: impl Into<String>) -> Self
pub fn with_server(self, url: impl Into<String>) -> Self
pub fn with_server_description( self, url: impl Into<String>, description: impl Into<String>, ) -> Self
pub fn with_external_docs( self, description: impl Into<String>, url: impl Into<String>, ) -> Self
pub fn with_tag_description( self, name: impl Into<String>, description: impl Into<String>, ) -> Self
pub fn with_tag_external_docs( self, name: impl Into<String>, description: impl Into<String>, url: impl Into<String>, ) -> Self
Trait Implementations§
Source§impl Clone for OpenApiInfo
impl Clone for OpenApiInfo
Source§fn clone(&self) -> OpenApiInfo
fn clone(&self) -> OpenApiInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OpenApiInfo
impl Debug for OpenApiInfo
impl Eq for OpenApiInfo
Source§impl PartialEq for OpenApiInfo
impl PartialEq for OpenApiInfo
Source§impl Serialize for OpenApiInfo
impl Serialize for OpenApiInfo
impl StructuralPartialEq for OpenApiInfo
Auto Trait Implementations§
impl Freeze for OpenApiInfo
impl RefUnwindSafe for OpenApiInfo
impl Send for OpenApiInfo
impl Sync for OpenApiInfo
impl Unpin for OpenApiInfo
impl UnsafeUnpin for OpenApiInfo
impl UnwindSafe for OpenApiInfo
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