pub enum DocumentDownload {
None,
Json,
Yaml,
Both,
}Expand description
Format(s) offered by the header “Download OpenAPI” button.
Variants§
None
Hide the download button entirely. The spec is still reachable at the mounted JSON path.
Json
Offer JSON download.
Yaml
Offer YAML download.
Both
Offer both JSON and YAML downloads.
Trait Implementations§
Source§impl Clone for DocumentDownload
impl Clone for DocumentDownload
Source§fn clone(&self) -> DocumentDownload
fn clone(&self) -> DocumentDownload
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 DocumentDownload
impl Debug for DocumentDownload
Source§impl PartialEq for DocumentDownload
impl PartialEq for DocumentDownload
Source§impl Serialize for DocumentDownload
impl Serialize for DocumentDownload
impl Copy for DocumentDownload
impl Eq for DocumentDownload
impl StructuralPartialEq for DocumentDownload
Auto Trait Implementations§
impl Freeze for DocumentDownload
impl RefUnwindSafe for DocumentDownload
impl Send for DocumentDownload
impl Sync for DocumentDownload
impl Unpin for DocumentDownload
impl UnsafeUnpin for DocumentDownload
impl UnwindSafe for DocumentDownload
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.