pub struct OpenApiClient { /* private fields */ }Implementations§
Source§impl OpenApiClient
impl OpenApiClient
pub fn new(options: FetchOptions) -> Result<Self, OpenApiError>
pub fn discover(&self) -> Result<DiscoveryIndex, OpenApiError>
pub fn fetch_spec(&self, group_version: &str) -> Result<Value, OpenApiError>
pub fn fetch_all_specs(&self) -> Result<HashMap<String, Value>, OpenApiError>
Auto Trait Implementations§
impl Freeze for OpenApiClient
impl !RefUnwindSafe for OpenApiClient
impl Send for OpenApiClient
impl Sync for OpenApiClient
impl Unpin for OpenApiClient
impl UnsafeUnpin for OpenApiClient
impl !UnwindSafe for OpenApiClient
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