pub struct AsyncApiRegistry { /* private fields */ }Implementations§
Source§impl AsyncApiRegistry
impl AsyncApiRegistry
pub fn new() -> Self
pub fn load( &mut self, alias: &str, location: &str, base_dir: &Path, ) -> Result<(), String>
pub fn resolve(&self, ext_ref: &ExternalRef) -> Result<&Value, String>
pub fn resolve_ref(&self, alias: &str, pointer: &str) -> Result<&Value, String>
pub fn get_schema_for_path( &self, ext_ref: &ExternalRef, path_segments: &[PathSegment], ) -> Result<Option<Value>, String>
Auto Trait Implementations§
impl Freeze for AsyncApiRegistry
impl RefUnwindSafe for AsyncApiRegistry
impl Send for AsyncApiRegistry
impl Sync for AsyncApiRegistry
impl Unpin for AsyncApiRegistry
impl UnsafeUnpin for AsyncApiRegistry
impl UnwindSafe for AsyncApiRegistry
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