pub enum VersionedApiDocKind {
Json,
GitStub,
}Expand description
Describes how a versioned API document file is stored.
Variants§
Json
The document is stored as a JSON file containing the full OpenAPI document.
GitStub
The document 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 VersionedApiDocKind
impl Clone for VersionedApiDocKind
Source§fn clone(&self) -> VersionedApiDocKind
fn clone(&self) -> VersionedApiDocKind
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 moreimpl Copy for VersionedApiDocKind
Source§impl Debug for VersionedApiDocKind
impl Debug for VersionedApiDocKind
impl Eq for VersionedApiDocKind
Source§impl Ord for VersionedApiDocKind
impl Ord for VersionedApiDocKind
Source§fn cmp(&self, other: &VersionedApiDocKind) -> Ordering
fn cmp(&self, other: &VersionedApiDocKind) -> Ordering
1.21.0 (const: unstable) · 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 VersionedApiDocKind
impl PartialEq for VersionedApiDocKind
Source§impl PartialOrd for VersionedApiDocKind
impl PartialOrd for VersionedApiDocKind
impl StructuralPartialEq for VersionedApiDocKind
Auto Trait Implementations§
impl Freeze for VersionedApiDocKind
impl RefUnwindSafe for VersionedApiDocKind
impl Send for VersionedApiDocKind
impl Sync for VersionedApiDocKind
impl Unpin for VersionedApiDocKind
impl UnsafeUnpin for VersionedApiDocKind
impl UnwindSafe for VersionedApiDocKind
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