[][src]Enum paperclip::v2::models::SpecFormat

pub enum SpecFormat {
    Json,
    Yaml,
}

The format used by spec (JSON/YAML).

Variants

Json
Yaml

Methods

impl SpecFormat[src]

pub fn coder(self) -> Arc<Coder>[src]

The en/decoder used for this format.

pub fn mime(self) -> &'static MediaRange[src]

The mime for this format.

Trait Implementations

impl Clone for SpecFormat[src]

impl Copy for SpecFormat[src]

impl Debug for SpecFormat[src]

impl Default for SpecFormat[src]

impl Eq for SpecFormat[src]

impl PartialEq<SpecFormat> for SpecFormat[src]

impl StructuralEq for SpecFormat[src]

impl StructuralPartialEq for SpecFormat[src]

Auto Trait Implementations

impl RefUnwindSafe for SpecFormat

impl Send for SpecFormat

impl Sync for SpecFormat

impl Unpin for SpecFormat

impl UnwindSafe for SpecFormat

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,