pub enum OpenApiSpecLocation {
File(PathBuf),
Url(Url),
}Variants§
Implementations§
Source§impl OpenApiSpecLocation
impl OpenApiSpecLocation
pub async fn load_spec(&self) -> Result<OpenApiSpec, OpenApiError>
Trait Implementations§
Source§impl Clone for OpenApiSpecLocation
impl Clone for OpenApiSpecLocation
Source§fn clone(&self) -> OpenApiSpecLocation
fn clone(&self) -> OpenApiSpecLocation
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OpenApiSpecLocation
impl Debug for OpenApiSpecLocation
Source§impl Display for OpenApiSpecLocation
impl Display for OpenApiSpecLocation
Auto Trait Implementations§
impl Freeze for OpenApiSpecLocation
impl RefUnwindSafe for OpenApiSpecLocation
impl Send for OpenApiSpecLocation
impl Sync for OpenApiSpecLocation
impl Unpin for OpenApiSpecLocation
impl UnwindSafe for OpenApiSpecLocation
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