pub struct Api {
pub name: String,
pub version: String,
pub schemas: Vec<Schema>,
pub operations: Vec<Operation>,
pub annotations: BTreeMap<String, Value>,
}Expand description
A normalized, language-neutral description of an API.
Adapters own the conversion from OpenAPI (or another input) into this
structure. Generator plugins never need to know which source format was
used. SchemaValue intentionally retains OpenAPI’s compositional type
system instead of reducing it to target-language strings.
Fields§
§name: String§version: String§schemas: Vec<Schema>§operations: Vec<Operation>§annotations: BTreeMap<String, Value>Adapter-specific source metadata that is safe for generic transforms to inspect without coupling the generator to OpenAPI.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Api
impl<'de> Deserialize<'de> for Api
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 Eq for Api
impl StructuralPartialEq for Api
Auto Trait Implementations§
impl Freeze for Api
impl RefUnwindSafe for Api
impl Send for Api
impl Sync for Api
impl Unpin for Api
impl UnsafeUnpin for Api
impl UnwindSafe for Api
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