pub enum VersionedApiSpecKind {
Json,
GitStub,
}Expand description
Describes how a versioned API spec file is stored.
Variants§
Json
The spec is stored as a JSON file containing the full OpenAPI document.
GitStub
The spec is stored as a Git stub.
Instead of storing the full JSON content, a .gitstub file contains a
reference in the format commit:path that can be used to retrieve the
content via git show.
Trait Implementations§
Source§impl Clone for VersionedApiSpecKind
impl Clone for VersionedApiSpecKind
Source§fn clone(&self) -> VersionedApiSpecKind
fn clone(&self) -> VersionedApiSpecKind
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 VersionedApiSpecKind
impl Debug for VersionedApiSpecKind
Source§impl Ord for VersionedApiSpecKind
impl Ord for VersionedApiSpecKind
Source§fn cmp(&self, other: &VersionedApiSpecKind) -> Ordering
fn cmp(&self, other: &VersionedApiSpecKind) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for VersionedApiSpecKind
impl PartialEq for VersionedApiSpecKind
Source§impl PartialOrd for VersionedApiSpecKind
impl PartialOrd for VersionedApiSpecKind
impl Copy for VersionedApiSpecKind
impl Eq for VersionedApiSpecKind
impl StructuralPartialEq for VersionedApiSpecKind
Auto Trait Implementations§
impl Freeze for VersionedApiSpecKind
impl RefUnwindSafe for VersionedApiSpecKind
impl Send for VersionedApiSpecKind
impl Sync for VersionedApiSpecKind
impl Unpin for VersionedApiSpecKind
impl UnsafeUnpin for VersionedApiSpecKind
impl UnwindSafe for VersionedApiSpecKind
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