[][src]Struct paperclip::v2::models::Coder

pub struct Coder {
    pub encoder_path: String,
    pub decoder_path: String,
    pub error_path: String,
    pub any_value: String,
    pub prefer: bool,
    pub builtin: bool,
}

Represents the en/decoder for some MIME media range.

Fields

encoder_path: String

Path to the encoding function.

decoder_path: String

Path to the decoding function.

error_path: String

Path to the error type.

any_value: String

Path to the struct/enum that represents Any (such as serde_json::Value).

prefer: bool

Whether this media type should be preferred when multiple types are available. When multiple types are preferred, it's unspecified as to which is chosen.

builtin: bool

Whether this en/decoder is built-in.

Trait Implementations

impl Clone for Coder[src]

impl Debug for Coder[src]

impl Default for Coder[src]

impl<'de> Deserialize<'de> for Coder[src]

impl Serialize for Coder[src]

Auto Trait Implementations

impl RefUnwindSafe for Coder

impl Send for Coder

impl Sync for Coder

impl Unpin for Coder

impl UnwindSafe for Coder

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<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[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>,