Struct serde_bytes_repr::ByteFmtDeserializer[][src]

pub struct ByteFmtDeserializer<D> {
    pub inner: D,
    // some fields omitted
}

Deserializer-adapter which decodes bytes from a specified format.

Fields

inner: D

Implementations

impl<D> ByteFmtDeserializer<D>[src]

pub fn new_base64(deserializer: D, config: Config) -> Self[src]

Crates an adapter which deserializes from a Base64 representation. Provide a configuration from the base64 crate specifying the specifics on how you want the bytes encoded.

pub fn new_hex(deserializer: D) -> Self[src]

Creates an adapter which deserializes from a HEX representation.

Trait Implementations

impl<'de, D> Deserializer<'de> for ByteFmtDeserializer<D> where
    D: Deserializer<'de>, 
[src]

type Error = D::Error

The error type that can be returned if some error occurs during deserialization. Read more

Auto Trait Implementations

impl<D> RefUnwindSafe for ByteFmtDeserializer<D> where
    D: RefUnwindSafe
[src]

impl<D> Send for ByteFmtDeserializer<D> where
    D: Send
[src]

impl<D> Sync for ByteFmtDeserializer<D> where
    D: Sync
[src]

impl<D> Unpin for ByteFmtDeserializer<D> where
    D: Unpin
[src]

impl<D> UnwindSafe for ByteFmtDeserializer<D> where
    D: UnwindSafe
[src]

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> From<T> for T[src]

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

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.