pub struct ApiSpec {
pub filename: Option<String>,
pub format: SpecFormat,
pub version: String,
pub title: String,
pub api_version: String,
pub operations: Vec<Operation>,
pub global_middlewares: Vec<MiddlewareConfig>,
pub extensions: BTreeMap<String, Value>,
}Expand description
A parsed API spec (OpenAPI or AsyncAPI).
Fields§
§filename: Option<String>Original filename (if parsed from file).
format: SpecFormatThe format detected from the root field.
version: StringThe spec version string (e.g. “3.1.0”).
title: StringThe info.title field.
api_version: StringThe info.version field (API version, not spec version).
operations: Vec<Operation>Parsed path operations.
global_middlewares: Vec<MiddlewareConfig>Global middlewares from root-level x-barbacane-middlewares.
extensions: BTreeMap<String, Value>Raw x-barbacane-* extensions at root level.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ApiSpec
impl<'de> Deserialize<'de> for ApiSpec
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
Auto Trait Implementations§
impl Freeze for ApiSpec
impl RefUnwindSafe for ApiSpec
impl Send for ApiSpec
impl Sync for ApiSpec
impl Unpin for ApiSpec
impl UnsafeUnpin for ApiSpec
impl UnwindSafe for ApiSpec
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