pub struct OpenAPI {
pub openapi: String,
pub info: Info,
pub servers: Vec<Server>,
pub paths: Paths,
pub components: Option<Components>,
pub security: Option<Vec<SecurityRequirement>>,
pub tags: Vec<Tag>,
pub external_docs: Option<ExternalDocumentation>,
pub extensions: BTreeMap<String, Value>,
}
Fields§
§openapi: String
REQUIRED. This string MUST be the semantic version number of the OpenAPI Specification version that the OpenAPI document uses. The openapi field SHOULD be used by tooling specifications and clients to interpret the OpenAPI document. This is not related to the API info.version string.
info: Info
§servers: Vec<Server>
§paths: Paths
§components: Option<Components>
§security: Option<Vec<SecurityRequirement>>
§external_docs: Option<ExternalDocumentation>
§extensions: BTreeMap<String, Value>
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
impl StructuralPartialEq for OpenAPI
Auto Trait Implementations§
impl Freeze for OpenAPI
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