pub struct AdaptedApi {
pub api: Api,
pub security_schemes: SecuritySchemeCatalog,
}Expand description
A normalized input contract ready for language plugins.
Adapters should preserve source-specific information in Api::annotations
where it is useful to a generic transform, rather than exposing their
parser’s internal types to generators. An empty security catalog is valid
for formats without reusable credential definitions.
Fields§
§api: Api§security_schemes: SecuritySchemeCatalogImplementations§
Source§impl AdaptedApi
impl AdaptedApi
pub fn new(api: Api, security_schemes: SecuritySchemeCatalog) -> Self
Trait Implementations§
Source§impl Clone for AdaptedApi
impl Clone for AdaptedApi
Source§impl Debug for AdaptedApi
impl Debug for AdaptedApi
Source§impl Default for AdaptedApi
impl Default for AdaptedApi
impl Eq for AdaptedApi
Source§impl PartialEq for AdaptedApi
impl PartialEq for AdaptedApi
impl StructuralPartialEq for AdaptedApi
Auto Trait Implementations§
impl Freeze for AdaptedApi
impl RefUnwindSafe for AdaptedApi
impl Send for AdaptedApi
impl Sync for AdaptedApi
impl Unpin for AdaptedApi
impl UnsafeUnpin for AdaptedApi
impl UnwindSafe for AdaptedApi
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