Trait serde_bytes::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>,

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<'de> Deserialize<'de> for Box<Bytes>

source§

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

source§

impl<'de> Deserialize<'de> for Box<[u8]>

source§

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

source§

impl<'de> Deserialize<'de> for Vec<u8>

source§

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

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>,

source§

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

source§

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

source§

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

source§

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

Implementors§

source§

impl<'de> Deserialize<'de> for ByteBuf

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>