pub struct OpenApiRegistry { /* private fields */ }Implementations§
Source§impl OpenApiRegistry
impl OpenApiRegistry
pub async fn from_config(cfg: OpenApiConfig, per_spec_timeout: Duration) -> Self
pub async fn load(cfg: OpenApiConfig, per_spec_timeout: Duration) -> Self
pub fn labels(&self) -> Vec<String>
pub fn is_empty(&self) -> bool
pub fn operation( &self, label: &str, op: &str, ) -> Result<&OperationHandle, OpenApiError>
Trait Implementations§
Source§impl Clone for OpenApiRegistry
impl Clone for OpenApiRegistry
Source§fn clone(&self) -> OpenApiRegistry
fn clone(&self) -> OpenApiRegistry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for OpenApiRegistry
impl Default for OpenApiRegistry
Source§fn default() -> OpenApiRegistry
fn default() -> OpenApiRegistry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for OpenApiRegistry
impl RefUnwindSafe for OpenApiRegistry
impl Send for OpenApiRegistry
impl Sync for OpenApiRegistry
impl Unpin for OpenApiRegistry
impl UnsafeUnpin for OpenApiRegistry
impl UnwindSafe for OpenApiRegistry
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