pub struct SchemaConverter<'a> { /* private fields */ }Expand description
Schema converter that maintains context and handles references
Implementations§
Source§impl<'a> SchemaConverter<'a>
impl<'a> SchemaConverter<'a>
Sourcepub fn new(spec: &'a OpenAPI, options: &'a OpenApiParserOptions) -> Self
pub fn new(spec: &'a OpenAPI, options: &'a OpenApiParserOptions) -> Self
Create a new schema converter
Sourcepub fn convert_all_schemas(&mut self) -> Result<Vec<IRType>>
pub fn convert_all_schemas(&mut self) -> Result<Vec<IRType>>
Convert all schemas from components to IR types
Auto Trait Implementations§
impl<'a> Freeze for SchemaConverter<'a>
impl<'a> RefUnwindSafe for SchemaConverter<'a>
impl<'a> Send for SchemaConverter<'a>
impl<'a> Sync for SchemaConverter<'a>
impl<'a> Unpin for SchemaConverter<'a>
impl<'a> UnsafeUnpin for SchemaConverter<'a>
impl<'a> UnwindSafe for SchemaConverter<'a>
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