rocket::serde

Trait Deserialize

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

A data structure that can be deserialized from any data format supported by Serde.

Serde provides Deserialize implementations for many Rust primitive and standard library types. The complete list is here. All of these can be deserialized using Serde out of the box.

Additionally, Serde provides a procedural macro called serde_derive to automatically generate Deserialize implementations for structs and enums in your program. See the derive section of the manual for how to use this.

In rare cases it may be necessary to implement Deserialize manually for some type in your program. See the Implementing Deserialize section of the manual for more about this.

Third-party crates may provide Deserialize implementations for types that they expose. For example the linked-hash-map crate provides a LinkedHashMap<K, V> type that is deserializable by Serde because the crate provides an implementation of Deserialize for it.

§Lifetime

The 'de lifetime of this trait is the lifetime of data that may be borrowed by Self when deserialized. See the page Understanding deserializer lifetimes for a more detailed explanation of these lifetimes.

Required Methods§

Source

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

Deserialize this value from the given Serde deserializer.

See the Implementing Deserialize section of the manual for more information about how to implement this method.

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> Deserialize<'de> for IpAddr

Source§

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

Source§

impl<'de> Deserialize<'de> for SocketAddr

Source§

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

Source§

impl<'de> Deserialize<'de> for Value

Source§

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

Source§

impl<'de> Deserialize<'de> for Value

Source§

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

Source§

impl<'de> Deserialize<'de> for bool

Source§

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

Source§

impl<'de> Deserialize<'de> for char

Source§

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

Source§

impl<'de> Deserialize<'de> for f32

Source§

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

Source§

impl<'de> Deserialize<'de> for f64

Source§

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

Source§

impl<'de> Deserialize<'de> for i8

Source§

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

Source§

impl<'de> Deserialize<'de> for i16

Source§

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

Source§

impl<'de> Deserialize<'de> for i32

Source§

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

Source§

impl<'de> Deserialize<'de> for i64

Source§

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

Source§

impl<'de> Deserialize<'de> for i128

Source§

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

Source§

impl<'de> Deserialize<'de> for isize

Source§

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

Source§

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

Source§

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

Source§

impl<'de> Deserialize<'de> for u16

Source§

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

Source§

impl<'de> Deserialize<'de> for u32

Source§

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

Source§

impl<'de> Deserialize<'de> for u64

Source§

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

Source§

impl<'de> Deserialize<'de> for u128

Source§

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

Source§

impl<'de> Deserialize<'de> for ()

Source§

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

Source§

impl<'de> Deserialize<'de> for usize

Source§

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

Source§

impl<'de> Deserialize<'de> for CString

Source§

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

Source§

impl<'de> Deserialize<'de> for Ipv4Addr

Source§

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

Source§

impl<'de> Deserialize<'de> for Ipv6Addr

Source§

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

Source§

impl<'de> Deserialize<'de> for SocketAddrV4

Source§

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

Source§

impl<'de> Deserialize<'de> for SocketAddrV6

Source§

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

Source§

impl<'de> Deserialize<'de> for NonZero<i8>

Source§

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

Source§

impl<'de> Deserialize<'de> for NonZero<i16>

Source§

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

Source§

impl<'de> Deserialize<'de> for NonZero<i32>

Source§

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

Source§

impl<'de> Deserialize<'de> for NonZero<i64>

Source§

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

Source§

impl<'de> Deserialize<'de> for NonZero<i128>

Source§

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

Source§

impl<'de> Deserialize<'de> for NonZero<isize>

Source§

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

Source§

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

Source§

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

Source§

impl<'de> Deserialize<'de> for NonZero<u16>

Source§

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

Source§

impl<'de> Deserialize<'de> for NonZero<u32>

Source§

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

Source§

impl<'de> Deserialize<'de> for NonZero<u64>

Source§

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

Source§

impl<'de> Deserialize<'de> for NonZero<u128>

Source§

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

Source§

impl<'de> Deserialize<'de> for NonZero<usize>

Source§

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

Source§

impl<'de> Deserialize<'de> for Saturating<i8>

Source§

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

Source§

impl<'de> Deserialize<'de> for Saturating<i16>

Source§

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

Source§

impl<'de> Deserialize<'de> for Saturating<i32>

Source§

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

Source§

impl<'de> Deserialize<'de> for Saturating<i64>

Source§

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

Source§

impl<'de> Deserialize<'de> for Saturating<i128>

Source§

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

Source§

impl<'de> Deserialize<'de> for Saturating<isize>

Source§

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

Source§

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

Source§

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

Source§

impl<'de> Deserialize<'de> for Saturating<u16>

Source§

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

Source§

impl<'de> Deserialize<'de> for Saturating<u32>

Source§

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

Source§

impl<'de> Deserialize<'de> for Saturating<u64>

Source§

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

Source§

impl<'de> Deserialize<'de> for Saturating<u128>

Source§

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

Source§

impl<'de> Deserialize<'de> for Saturating<usize>

Source§

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

Source§

impl<'de> Deserialize<'de> for AtomicBool

Source§

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

Source§

impl<'de> Deserialize<'de> for AtomicI8

Source§

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

Source§

impl<'de> Deserialize<'de> for AtomicI16

Source§

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

Source§

impl<'de> Deserialize<'de> for AtomicI32

Source§

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

Source§

impl<'de> Deserialize<'de> for AtomicI64

Source§

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

Source§

impl<'de> Deserialize<'de> for AtomicIsize

Source§

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

Source§

impl<'de> Deserialize<'de> for AtomicU8

Source§

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

Source§

impl<'de> Deserialize<'de> for AtomicU16

Source§

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

Source§

impl<'de> Deserialize<'de> for AtomicU32

Source§

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

Source§

impl<'de> Deserialize<'de> for AtomicU64

Source§

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

Source§

impl<'de> Deserialize<'de> for AtomicUsize

Source§

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

Source§

impl<'de> Deserialize<'de> for Duration

Source§

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

Source§

impl<'de> Deserialize<'de> for OsString

Source§

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

Source§

impl<'de> Deserialize<'de> for PathBuf

Source§

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

Source§

impl<'de> Deserialize<'de> for SystemTime

Source§

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

Source§

impl<'de> Deserialize<'de> for Profile

Source§

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

Source§

impl<'de> Deserialize<'de> for RelativePathBuf

Source§

fn deserialize<__D>( __deserializer: __D, ) -> Result<RelativePathBuf, <__D as Deserializer<'de>>::Error>
where __D: Deserializer<'de>,

Source§

impl<'de> Deserialize<'de> for Tag

Source§

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

Source§

impl<'de> Deserialize<'de> for Map<String, Value>

Source§

fn deserialize<D>( deserializer: D, ) -> Result<Map<String, Value>, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

Source§

impl<'de> Deserialize<'de> for Number

Source§

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

Source§

impl<'de> Deserialize<'de> for Map<String, Value>

Source§

fn deserialize<D>( deserializer: D, ) -> Result<Map<String, Value>, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

Source§

impl<'de> Deserialize<'de> for Date

Source§

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

Source§

impl<'de> Deserialize<'de> for Datetime

Source§

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

Source§

impl<'de> Deserialize<'de> for Time

Source§

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

Source§

impl<'de> Deserialize<'de> for InternalString

Source§

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

Source§

impl<'de, 'a> Deserialize<'de> for &'a str
where 'de: 'a,

Source§

fn deserialize<D>( deserializer: D, ) -> Result<&'a str, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

Source§

impl<'de, 'a> Deserialize<'de> for &'a Path
where 'de: 'a,

Source§

fn deserialize<D>( deserializer: D, ) -> Result<&'a Path, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

Source§

impl<'de, 'a> Deserialize<'de> for &'a RawValue
where 'de: 'a,

Source§

fn deserialize<D>( deserializer: D, ) -> Result<&'a RawValue, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

Source§

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

Source§

fn deserialize<D>( deserializer: D, ) -> Result<&'a [u8], <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

Source§

impl<'de, 'a, T> Deserialize<'de> for Cow<'a, T>
where T: ToOwned + ?Sized, <T as ToOwned>::Owned: Deserialize<'de>,

Source§

fn deserialize<D>( deserializer: D, ) -> Result<Cow<'a, T>, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

Source§

impl<'de, 'b, A, B> Deserialize<'de> for Either<A, B>
where 'de: 'b, A: Magic, B: Deserialize<'b>,

Source§

fn deserialize<D>( de: D, ) -> Result<Either<A, B>, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

Source§

impl<'de, K, V, S> Deserialize<'de> for IndexMap<K, V, S>
where K: Deserialize<'de> + Eq + Hash, V: Deserialize<'de>, S: Default + BuildHasher,

Source§

fn deserialize<D>( deserializer: D, ) -> Result<IndexMap<K, V, S>, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

Source§

impl<'de, L, R> Deserialize<'de> for Either<L, R>
where L: Deserialize<'de>, R: Deserialize<'de>,

Source§

fn deserialize<__D>( __deserializer: __D, ) -> Result<Either<L, R>, <__D as Deserializer<'de>>::Error>
where __D: Deserializer<'de>,

Source§

impl<'de, T0, T1> Deserialize<'de> for (T0, T1)
where T0: Deserialize<'de>, T1: Deserialize<'de>,

Source§

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

Source§

impl<'de, T0, T1, T2> Deserialize<'de> for (T0, T1, T2)
where T0: Deserialize<'de>, T1: Deserialize<'de>, T2: Deserialize<'de>,

Source§

fn deserialize<D>( deserializer: D, ) -> Result<(T0, T1, T2), <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

Source§

impl<'de, T0, T1, T2, T3> Deserialize<'de> for (T0, T1, T2, T3)
where T0: Deserialize<'de>, T1: Deserialize<'de>, T2: Deserialize<'de>, T3: Deserialize<'de>,

Source§

fn deserialize<D>( deserializer: D, ) -> Result<(T0, T1, T2, T3), <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

Source§

impl<'de, T0, T1, T2, T3, T4> Deserialize<'de> for (T0, T1, T2, T3, T4)
where T0: Deserialize<'de>, T1: Deserialize<'de>, T2: Deserialize<'de>, T3: Deserialize<'de>, T4: Deserialize<'de>,

Source§

fn deserialize<D>( deserializer: D, ) -> Result<(T0, T1, T2, T3, T4), <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

Source§

impl<'de, T0, T1, T2, T3, T4, T5> Deserialize<'de> for (T0, T1, T2, T3, T4, T5)
where T0: Deserialize<'de>, T1: Deserialize<'de>, T2: Deserialize<'de>, T3: Deserialize<'de>, T4: Deserialize<'de>, T5: Deserialize<'de>,

Source§

fn deserialize<D>( deserializer: D, ) -> Result<(T0, T1, T2, T3, T4, T5), <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

Source§

impl<'de, T0, T1, T2, T3, T4, T5, T6> Deserialize<'de> for (T0, T1, T2, T3, T4, T5, T6)
where T0: Deserialize<'de>, T1: Deserialize<'de>, T2: Deserialize<'de>, T3: Deserialize<'de>, T4: Deserialize<'de>, T5: Deserialize<'de>, T6: Deserialize<'de>,

Source§

fn deserialize<D>( deserializer: D, ) -> Result<(T0, T1, T2, T3, T4, T5, T6), <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

Source§

impl<'de, T0, T1, T2, T3, T4, T5, T6, T7> Deserialize<'de> for (T0, T1, T2, T3, T4, T5, T6, T7)
where T0: Deserialize<'de>, T1: Deserialize<'de>, T2: Deserialize<'de>, T3: Deserialize<'de>, T4: Deserialize<'de>, T5: Deserialize<'de>, T6: Deserialize<'de>, T7: Deserialize<'de>,

Source§

fn deserialize<D>( deserializer: D, ) -> Result<(T0, T1, T2, T3, T4, T5, T6, T7), <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

Source§

impl<'de, T0, T1, T2, T3, T4, T5, T6, T7, T8> Deserialize<'de> for (T0, T1, T2, T3, T4, T5, T6, T7, T8)
where T0: Deserialize<'de>, T1: Deserialize<'de>, T2: Deserialize<'de>, T3: Deserialize<'de>, T4: Deserialize<'de>, T5: Deserialize<'de>, T6: Deserialize<'de>, T7: Deserialize<'de>, T8: Deserialize<'de>,

Source§

fn deserialize<D>( deserializer: D, ) -> Result<(T0, T1, T2, T3, T4, T5, T6, T7, T8), <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

Source§

impl<'de, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9> Deserialize<'de> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9)
where T0: Deserialize<'de>, T1: Deserialize<'de>, T2: Deserialize<'de>, T3: Deserialize<'de>, T4: Deserialize<'de>, T5: Deserialize<'de>, T6: Deserialize<'de>, T7: Deserialize<'de>, T8: Deserialize<'de>, T9: Deserialize<'de>,

Source§

fn deserialize<D>( deserializer: D, ) -> Result<(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9), <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

Source§

impl<'de, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> Deserialize<'de> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)
where T0: Deserialize<'de>, T1: Deserialize<'de>, T2: Deserialize<'de>, T3: Deserialize<'de>, T4: Deserialize<'de>, T5: Deserialize<'de>, T6: Deserialize<'de>, T7: Deserialize<'de>, T8: Deserialize<'de>, T9: Deserialize<'de>, T10: Deserialize<'de>,

Source§

impl<'de, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11> Deserialize<'de> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)
where T0: Deserialize<'de>, T1: Deserialize<'de>, T2: Deserialize<'de>, T3: Deserialize<'de>, T4: Deserialize<'de>, T5: Deserialize<'de>, T6: Deserialize<'de>, T7: Deserialize<'de>, T8: Deserialize<'de>, T9: Deserialize<'de>, T10: Deserialize<'de>, T11: Deserialize<'de>,

Source§

impl<'de, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> Deserialize<'de> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12)
where T0: Deserialize<'de>, T1: Deserialize<'de>, T2: Deserialize<'de>, T3: Deserialize<'de>, T4: Deserialize<'de>, T5: Deserialize<'de>, T6: Deserialize<'de>, T7: Deserialize<'de>, T8: Deserialize<'de>, T9: Deserialize<'de>, T10: Deserialize<'de>, T11: Deserialize<'de>, T12: Deserialize<'de>,

Source§

impl<'de, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13> Deserialize<'de> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13)
where T0: Deserialize<'de>, T1: Deserialize<'de>, T2: Deserialize<'de>, T3: Deserialize<'de>, T4: Deserialize<'de>, T5: Deserialize<'de>, T6: Deserialize<'de>, T7: Deserialize<'de>, T8: Deserialize<'de>, T9: Deserialize<'de>, T10: Deserialize<'de>, T11: Deserialize<'de>, T12: Deserialize<'de>, T13: Deserialize<'de>,

Source§

impl<'de, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14> Deserialize<'de> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14)
where T0: Deserialize<'de>, T1: Deserialize<'de>, T2: Deserialize<'de>, T3: Deserialize<'de>, T4: Deserialize<'de>, T5: Deserialize<'de>, T6: Deserialize<'de>, T7: Deserialize<'de>, T8: Deserialize<'de>, T9: Deserialize<'de>, T10: Deserialize<'de>, T11: Deserialize<'de>, T12: Deserialize<'de>, T13: Deserialize<'de>, T14: Deserialize<'de>,

Source§

impl<'de, T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15> Deserialize<'de> for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15)
where T0: Deserialize<'de>, T1: Deserialize<'de>, T2: Deserialize<'de>, T3: Deserialize<'de>, T4: Deserialize<'de>, T5: Deserialize<'de>, T6: Deserialize<'de>, T7: Deserialize<'de>, T8: Deserialize<'de>, T9: Deserialize<'de>, T10: Deserialize<'de>, T11: Deserialize<'de>, T12: Deserialize<'de>, T13: Deserialize<'de>, T14: Deserialize<'de>, T15: Deserialize<'de>,

Source§

impl<'de, T> Deserialize<'de> for [T; 0]

Source§

fn deserialize<D>( deserializer: D, ) -> Result<[T; 0], <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

Source§

impl<'de, T> Deserialize<'de> for [T; 1]
where T: Deserialize<'de>,

Source§

fn deserialize<D>( deserializer: D, ) -> Result<[T; 1], <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

Source§

impl<'de, T> Deserialize<'de> for [T; 2]
where T: Deserialize<'de>,

Source§

fn deserialize<D>( deserializer: D, ) -> Result<[T; 2], <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

Source§

impl<'de, T> Deserialize<'de> for [T; 3]
where T: Deserialize<'de>,

Source§

fn deserialize<D>( deserializer: D, ) -> Result<[T; 3], <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

Source§

impl<'de, T> Deserialize<'de> for [T; 4]
where T: Deserialize<'de>,

Source§

fn deserialize<D>( deserializer: D, ) -> Result<[T; 4], <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

Source§

impl<'de, T> Deserialize<'de> for [T; 5]
where T: Deserialize<'de>,

Source§

fn deserialize<D>( deserializer: D, ) -> Result<[T; 5], <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

Source§

impl<'de, T> Deserialize<'de> for [T; 6]
where T: Deserialize<'de>,

Source§

fn deserialize<D>( deserializer: D, ) -> Result<[T; 6], <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

Source§

impl<'de, T> Deserialize<'de> for [T; 7]
where T: Deserialize<'de>,

Source§

fn deserialize<D>( deserializer: D, ) -> Result<[T; 7], <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

Source§

impl<'de, T> Deserialize<'de> for [T; 8]
where T: Deserialize<'de>,

Source§

fn deserialize<D>( deserializer: D, ) -> Result<[T; 8], <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

Source§

impl<'de, T> Deserialize<'de> for [T; 9]
where T: Deserialize<'de>,

Source§

fn deserialize<D>( deserializer: D, ) -> Result<[T; 9], <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

Source§

impl<'de, T> Deserialize<'de> for [T; 10]
where T: Deserialize<'de>,

Source§

fn deserialize<D>( deserializer: D, ) -> Result<[T; 10], <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

Source§

impl<'de, T> Deserialize<'de> for [T; 11]
where T: Deserialize<'de>,

Source§

fn deserialize<D>( deserializer: D, ) -> Result<[T; 11], <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

Source§

impl<'de, T> Deserialize<'de> for [T; 12]
where T: Deserialize<'de>,

Source§

fn deserialize<D>( deserializer: D, ) -> Result<[T; 12], <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

Source§

impl<'de, T> Deserialize<'de> for [T; 13]
where T: Deserialize<'de>,

Source§

fn deserialize<D>( deserializer: D, ) -> Result<[T; 13], <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

Source§

impl<'de, T> Deserialize<'de> for [T; 14]
where T: Deserialize<'de>,

Source§

fn deserialize<D>( deserializer: D, ) -> Result<[T; 14], <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

Source§

impl<'de, T> Deserialize<'de> for [T; 15]
where T: Deserialize<'de>,

Source§

fn deserialize<D>( deserializer: D, ) -> Result<[T; 15], <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

Source§

impl<'de, T> Deserialize<'de> for [T; 16]
where T: Deserialize<'de>,

Source§

fn deserialize<D>( deserializer: D, ) -> Result<[T; 16], <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

Source§

impl<'de, T> Deserialize<'de> for [T; 17]
where T: Deserialize<'de>,

Source§

fn deserialize<D>( deserializer: D, ) -> Result<[T; 17], <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

Source§

impl<'de, T> Deserialize<'de> for [T; 18]
where T: Deserialize<'de>,

Source§

fn deserialize<D>( deserializer: D, ) -> Result<[T; 18], <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

Source§

impl<'de, T> Deserialize<'de> for [T; 19]
where T: Deserialize<'de>,

Source§

fn deserialize<D>( deserializer: D, ) -> Result<[T; 19], <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

Source§

impl<'de, T> Deserialize<'de> for [T; 20]
where T: Deserialize<'de>,

Source§

fn deserialize<D>( deserializer: D, ) -> Result<[T; 20], <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

Source§

impl<'de, T> Deserialize<'de> for [T; 21]
where T: Deserialize<'de>,

Source§

fn deserialize<D>( deserializer: D, ) -> Result<[T; 21], <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

Source§

impl<'de, T> Deserialize<'de> for [T; 22]
where T: Deserialize<'de>,

Source§

fn deserialize<D>( deserializer: D, ) -> Result<[T; 22], <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

Source§

impl<'de, T> Deserialize<'de> for [T; 23]
where T: Deserialize<'de>,

Source§

fn deserialize<D>( deserializer: D, ) -> Result<[T; 23], <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

Source§

impl<'de, T> Deserialize<'de> for [T; 24]
where T: Deserialize<'de>,

Source§

fn deserialize<D>( deserializer: D, ) -> Result<[T; 24], <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

Source§

impl<'de, T> Deserialize<'de> for [T; 25]
where T: Deserialize<'de>,

Source§

fn deserialize<D>( deserializer: D, ) -> Result<[T; 25], <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

Source§

impl<'de, T> Deserialize<'de> for [T; 26]
where T: Deserialize<'de>,

Source§

fn deserialize<D>( deserializer: D, ) -> Result<[T; 26], <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

Source§

impl<'de, T> Deserialize<'de> for [T; 27]
where T: Deserialize<'de>,

Source§

fn deserialize<D>( deserializer: D, ) -> Result<[T; 27], <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

Source§

impl<'de, T> Deserialize<'de> for [T; 28]
where T: Deserialize<'de>,

Source§

fn deserialize<D>( deserializer: D, ) -> Result<[T; 28], <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

Source§

impl<'de, T> Deserialize<'de> for [T; 29]
where T: Deserialize<'de>,

Source§

fn deserialize<D>( deserializer: D, ) -> Result<[T; 29], <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

Source§

impl<'de, T> Deserialize<'de> for [T; 30]
where T: Deserialize<'de>,

Source§

fn deserialize<D>( deserializer: D, ) -> Result<[T; 30], <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

Source§

impl<'de, T> Deserialize<'de> for [T; 31]
where T: Deserialize<'de>,

Source§

fn deserialize<D>( deserializer: D, ) -> Result<[T; 31], <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

Source§

impl<'de, T> Deserialize<'de> for [T; 32]
where T: Deserialize<'de>,

Source§

fn deserialize<D>( deserializer: D, ) -> Result<[T; 32], <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

Source§

impl<'de, T> Deserialize<'de> for (T,)
where T: Deserialize<'de>,

Source§

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

Source§

impl<'de, T> Deserialize<'de> for Rc<T>
where Box<T>: Deserialize<'de>, T: ?Sized,

This impl requires the "rc" Cargo feature of Serde.

Deserializing a data structure containing Rc will not attempt to deduplicate Rc references to the same data. Every deserialized Rc will end up with a strong count of 1.

Source§

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

Source§

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

This impl requires the "rc" Cargo feature of Serde. The resulting Weak<T> has a reference count of 0 and cannot be upgraded.

Source§

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

Source§

impl<'de, T> Deserialize<'de> for Arc<T>
where Box<T>: Deserialize<'de>, T: ?Sized,

This impl requires the "rc" Cargo feature of Serde.

Deserializing a data structure containing Arc will not attempt to deduplicate Arc references to the same data. Every deserialized Arc will end up with a strong count of 1.

Source§

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

Source§

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

This impl requires the "rc" Cargo feature of Serde. The resulting Weak<T> has a reference count of 0 and cannot be upgraded.

Source§

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

Source§

impl<'de, T> Deserialize<'de> for Cell<T>
where T: Deserialize<'de> + Copy,

Source§

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

Source§

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

Source§

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

Source§

impl<'de, T> Deserialize<'de> for PhantomData<T>
where T: ?Sized,

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

fn deserialize<__D>( __deserializer: __D, ) -> Result<Tagged<T>, <__D as Deserializer<'de>>::Error>
where __D: Deserializer<'de>,

Source§

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

Source§

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

Source§

impl<'de, T, S> Deserialize<'de> for IndexSet<T, S>
where T: Deserialize<'de> + Eq + Hash, S: Default + BuildHasher,

Source§

fn deserialize<D>( deserializer: D, ) -> Result<IndexSet<T, S>, <D as Deserializer<'de>>::Error>
where D: Deserializer<'de>,

Implementors§

Source§

impl<'a, 'de> Deserialize<'de> for &'a UncasedStr
where 'de: 'a,

Source§

impl<'a, 'de> Deserialize<'de> for Uncased<'a>

§

impl<'a, 'de> Deserialize<'de> for Absolute<'a>

§

impl<'a, 'de> Deserialize<'de> for Asterisk

§

impl<'a, 'de> Deserialize<'de> for Authority<'a>

§

impl<'a, 'de> Deserialize<'de> for Host<'a>

§

impl<'a, 'de> Deserialize<'de> for Origin<'a>

§

impl<'a, 'de> Deserialize<'de> for Reference<'a>

Source§

impl<'de> Deserialize<'de> for CipherSuite

Source§

impl<'de> Deserialize<'de> for LogLevel

Source§

impl<'de> Deserialize<'de> for Sig

§

impl<'de> Deserialize<'de> for Method

Source§

impl<'de> Deserialize<'de> for rocket::serde::json::Value

Source§

impl<'de> Deserialize<'de> for Config

Source§

impl<'de> Deserialize<'de> for Ident

Source§

impl<'de> Deserialize<'de> for MutualTls

Source§

impl<'de> Deserialize<'de> for SecretKey

Source§

impl<'de> Deserialize<'de> for Shutdown

Source§

impl<'de> Deserialize<'de> for TlsConfig

Source§

impl<'de> Deserialize<'de> for ByteUnit

Source§

impl<'de> Deserialize<'de> for Limits

§

impl<'de> Deserialize<'de> for Status

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

impl<'de> Deserialize<'de> for String

Source§

impl<'de> Deserialize<'de> for IgnoredAny

Source§

impl<'de> Deserialize<'de> for Uuid

§

impl<'de, 'a> Deserialize<'de> for &'a RawStr
where 'de: 'a,

Source§

impl<'de, Idx> Deserialize<'de> for Range<Idx>
where Idx: Deserialize<'de>,

Source§

impl<'de, Idx> Deserialize<'de> for RangeFrom<Idx>
where Idx: Deserialize<'de>,

Source§

impl<'de, Idx> Deserialize<'de> for RangeInclusive<Idx>
where Idx: Deserialize<'de>,

Source§

impl<'de, Idx> Deserialize<'de> for RangeTo<Idx>
where Idx: Deserialize<'de>,

Source§

impl<'de, K, V> Deserialize<'de> for BTreeMap<K, V>
where K: Deserialize<'de> + Ord, V: Deserialize<'de>,

Source§

impl<'de, K, V, S> Deserialize<'de> for HashMap<K, V, S>
where K: Deserialize<'de> + Eq + Hash, V: Deserialize<'de>, S: BuildHasher + Default,

Source§

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

Source§

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

Source§

impl<'de, T> Deserialize<'de> for Box<[T]>
where T: Deserialize<'de>,

Source§

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

Source§

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

Source§

impl<'de, T> Deserialize<'de> for BinaryHeap<T>
where T: Deserialize<'de> + Ord,

Source§

impl<'de, T> Deserialize<'de> for BTreeSet<T>
where T: Deserialize<'de> + Eq + Ord,

Source§

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

Source§

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

Source§

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

Source§

impl<'de, T, E> Deserialize<'de> for Result<T, E>
where T: Deserialize<'de>, E: Deserialize<'de>,

Source§

impl<'de, T, S> Deserialize<'de> for HashSet<T, S>
where T: Deserialize<'de> + Eq + Hash, S: BuildHasher + Default,

Source§

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

Source§

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