Struct openapi_schema::v3::OpenApi
source · pub struct OpenApi {
pub openapi: String,
pub info: Info,
pub servers: Option<Vec<Server>>,
pub paths: Paths,
pub components: Option<Components>,
pub security: Option<SecurityRequirement>,
pub tags: Option<Vec<Tag>>,
pub external_docs: Option<ExternalDoc>,
}
Expand description
OpenApi
This is the root document object of the OpenAPI document. see https://swagger.io/specification/v3/
Fields§
§openapi: String
This string MUST be the semantic version number of the OpenAPI Specification version that the OpenAPI document uses.
info: Info
Provides metadata about the API.
servers: Option<Vec<Server>>
An array of Server Objects, which provide connectivity information to a target server.
paths: Paths
§components: Option<Components>
§security: Option<SecurityRequirement>
§external_docs: Option<ExternalDoc>
Additional external documentation.
Trait Implementations§
source§impl<'de> Deserialize<'de> for OpenApi
impl<'de> Deserialize<'de> for OpenApi
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<OpenApi> for OpenApi
impl PartialEq<OpenApi> for OpenApi
impl StructuralPartialEq for OpenApi
Auto Trait Implementations§
impl RefUnwindSafe for OpenApi
impl Send for OpenApi
impl Sync for OpenApi
impl Unpin for OpenApi
impl UnwindSafe for OpenApi
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