serde_bytes

Trait Deserialize

Source
pub trait Deserialize<'de>: Sized {
    // Required method
    fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>
       where D: Deserializer<'de>;
}
Expand description

Types that can be deserialized via #[serde(with = "serde_bytes")].

Required Methods§

Source

fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>
where D: Deserializer<'de>,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<'de, T> Deserialize<'de> for Option<T>
where T: Deserialize<'de>,

Source§

fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>
where D: Deserializer<'de>,

Source§

impl<'de, const N: usize> Deserialize<'de> for &'de [u8; N]

Source§

fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>
where D: Deserializer<'de>,

Source§

impl<'de, const N: usize> Deserialize<'de> for [u8; N]

Source§

fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>
where D: Deserializer<'de>,

Source§

impl<'de: 'a, 'a> Deserialize<'de> for &'a [u8]

Source§

fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>
where D: Deserializer<'de>,

Implementors§

Source§

impl<'de, const N: usize> Deserialize<'de> for ByteArray<N>

Source§

impl<'de: 'a, 'a> Deserialize<'de> for &'a Bytes

Source§

impl<'de: 'a, 'a, const N: usize> Deserialize<'de> for &'a ByteArray<N>