Trait snarkvm_console::prelude::de::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§
sourcefn deserialize<D>(
deserializer: D
) -> Result<Self, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
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.
Object Safety§
Implementations on Foreign Types§
source§impl<'de> Deserialize<'de> for IpAddr
impl<'de> Deserialize<'de> for IpAddr
fn deserialize<D>( deserializer: D ) -> Result<IpAddr, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
source§impl<'de> Deserialize<'de> for SocketAddr
impl<'de> Deserialize<'de> for SocketAddr
fn deserialize<D>( deserializer: D ) -> Result<SocketAddr, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
source§impl<'de> Deserialize<'de> for Value
impl<'de> Deserialize<'de> for Value
fn deserialize<D>( deserializer: D ) -> Result<Value, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
source§impl<'de> Deserialize<'de> for LiteralType
impl<'de> Deserialize<'de> for LiteralType
source§fn deserialize<D>(
deserializer: D
) -> Result<LiteralType, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>( deserializer: D ) -> Result<LiteralType, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
Deserializes the literal type from a string or bytes.
source§impl<'de> Deserialize<'de> for bool
impl<'de> Deserialize<'de> for bool
fn deserialize<D>( deserializer: D ) -> Result<bool, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
source§impl<'de> Deserialize<'de> for char
impl<'de> Deserialize<'de> for char
fn deserialize<D>( deserializer: D ) -> Result<char, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
source§impl<'de> Deserialize<'de> for f32
impl<'de> Deserialize<'de> for f32
fn deserialize<D>( deserializer: D ) -> Result<f32, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
source§impl<'de> Deserialize<'de> for f64
impl<'de> Deserialize<'de> for f64
fn deserialize<D>( deserializer: D ) -> Result<f64, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
source§impl<'de> Deserialize<'de> for i8
impl<'de> Deserialize<'de> for i8
fn deserialize<D>( deserializer: D ) -> Result<i8, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
source§impl<'de> Deserialize<'de> for i16
impl<'de> Deserialize<'de> for i16
fn deserialize<D>( deserializer: D ) -> Result<i16, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
source§impl<'de> Deserialize<'de> for i32
impl<'de> Deserialize<'de> for i32
fn deserialize<D>( deserializer: D ) -> Result<i32, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
source§impl<'de> Deserialize<'de> for i64
impl<'de> Deserialize<'de> for i64
fn deserialize<D>( deserializer: D ) -> Result<i64, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
source§impl<'de> Deserialize<'de> for i128
impl<'de> Deserialize<'de> for i128
fn deserialize<D>( deserializer: D ) -> Result<i128, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
source§impl<'de> Deserialize<'de> for isize
impl<'de> Deserialize<'de> for isize
fn deserialize<D>( deserializer: D ) -> Result<isize, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
source§impl<'de> Deserialize<'de> for u8
impl<'de> Deserialize<'de> for u8
fn deserialize<D>( deserializer: D ) -> Result<u8, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
source§impl<'de> Deserialize<'de> for u16
impl<'de> Deserialize<'de> for u16
fn deserialize<D>( deserializer: D ) -> Result<u16, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
source§impl<'de> Deserialize<'de> for u32
impl<'de> Deserialize<'de> for u32
fn deserialize<D>( deserializer: D ) -> Result<u32, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
source§impl<'de> Deserialize<'de> for u64
impl<'de> Deserialize<'de> for u64
fn deserialize<D>( deserializer: D ) -> Result<u64, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
source§impl<'de> Deserialize<'de> for u128
impl<'de> Deserialize<'de> for u128
fn deserialize<D>( deserializer: D ) -> Result<u128, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
source§impl<'de> Deserialize<'de> for ()
impl<'de> Deserialize<'de> for ()
fn deserialize<D>( deserializer: D ) -> Result<(), <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
source§impl<'de> Deserialize<'de> for usize
impl<'de> Deserialize<'de> for usize
fn deserialize<D>( deserializer: D ) -> Result<usize, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
source§impl<'de> Deserialize<'de> for Box<str>
impl<'de> Deserialize<'de> for Box<str>
fn deserialize<D>( deserializer: D ) -> Result<Box<str>, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
source§impl<'de> Deserialize<'de> for Box<CStr>
impl<'de> Deserialize<'de> for Box<CStr>
fn deserialize<D>( deserializer: D ) -> Result<Box<CStr>, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
source§impl<'de> Deserialize<'de> for Box<OsStr>
impl<'de> Deserialize<'de> for Box<OsStr>
fn deserialize<D>( deserializer: D ) -> Result<Box<OsStr>, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
source§impl<'de> Deserialize<'de> for Box<Path>
impl<'de> Deserialize<'de> for Box<Path>
fn deserialize<D>( deserializer: D ) -> Result<Box<Path>, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
source§impl<'de> Deserialize<'de> for CString
impl<'de> Deserialize<'de> for CString
fn deserialize<D>( deserializer: D ) -> Result<CString, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
source§impl<'de> Deserialize<'de> for String
impl<'de> Deserialize<'de> for String
fn deserialize<D>( deserializer: D ) -> Result<String, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
source§impl<'de> Deserialize<'de> for Ipv4Addr
impl<'de> Deserialize<'de> for Ipv4Addr
fn deserialize<D>( deserializer: D ) -> Result<Ipv4Addr, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
source§impl<'de> Deserialize<'de> for Ipv6Addr
impl<'de> Deserialize<'de> for Ipv6Addr
fn deserialize<D>( deserializer: D ) -> Result<Ipv6Addr, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
source§impl<'de> Deserialize<'de> for SocketAddrV4
impl<'de> Deserialize<'de> for SocketAddrV4
fn deserialize<D>( deserializer: D ) -> Result<SocketAddrV4, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
source§impl<'de> Deserialize<'de> for SocketAddrV6
impl<'de> Deserialize<'de> for SocketAddrV6
fn deserialize<D>( deserializer: D ) -> Result<SocketAddrV6, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
source§impl<'de> Deserialize<'de> for NonZeroI8
impl<'de> Deserialize<'de> for NonZeroI8
fn deserialize<D>( deserializer: D ) -> Result<NonZeroI8, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
source§impl<'de> Deserialize<'de> for NonZeroI16
impl<'de> Deserialize<'de> for NonZeroI16
fn deserialize<D>( deserializer: D ) -> Result<NonZeroI16, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
source§impl<'de> Deserialize<'de> for NonZeroI32
impl<'de> Deserialize<'de> for NonZeroI32
fn deserialize<D>( deserializer: D ) -> Result<NonZeroI32, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
source§impl<'de> Deserialize<'de> for NonZeroI64
impl<'de> Deserialize<'de> for NonZeroI64
fn deserialize<D>( deserializer: D ) -> Result<NonZeroI64, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
source§impl<'de> Deserialize<'de> for NonZeroI128
impl<'de> Deserialize<'de> for NonZeroI128
fn deserialize<D>( deserializer: D ) -> Result<NonZeroI128, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
source§impl<'de> Deserialize<'de> for NonZeroIsize
impl<'de> Deserialize<'de> for NonZeroIsize
fn deserialize<D>( deserializer: D ) -> Result<NonZeroIsize, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
source§impl<'de> Deserialize<'de> for NonZeroU8
impl<'de> Deserialize<'de> for NonZeroU8
fn deserialize<D>( deserializer: D ) -> Result<NonZeroU8, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
source§impl<'de> Deserialize<'de> for NonZeroU16
impl<'de> Deserialize<'de> for NonZeroU16
fn deserialize<D>( deserializer: D ) -> Result<NonZeroU16, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
source§impl<'de> Deserialize<'de> for NonZeroU32
impl<'de> Deserialize<'de> for NonZeroU32
fn deserialize<D>( deserializer: D ) -> Result<NonZeroU32, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
source§impl<'de> Deserialize<'de> for NonZeroU64
impl<'de> Deserialize<'de> for NonZeroU64
fn deserialize<D>( deserializer: D ) -> Result<NonZeroU64, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
source§impl<'de> Deserialize<'de> for NonZeroU128
impl<'de> Deserialize<'de> for NonZeroU128
fn deserialize<D>( deserializer: D ) -> Result<NonZeroU128, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
source§impl<'de> Deserialize<'de> for NonZeroUsize
impl<'de> Deserialize<'de> for NonZeroUsize
fn deserialize<D>( deserializer: D ) -> Result<NonZeroUsize, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
source§impl<'de> Deserialize<'de> for AtomicBool
impl<'de> Deserialize<'de> for AtomicBool
fn deserialize<D>( deserializer: D ) -> Result<AtomicBool, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
source§impl<'de> Deserialize<'de> for AtomicI8
impl<'de> Deserialize<'de> for AtomicI8
fn deserialize<D>( deserializer: D ) -> Result<AtomicI8, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
source§impl<'de> Deserialize<'de> for AtomicI16
impl<'de> Deserialize<'de> for AtomicI16
fn deserialize<D>( deserializer: D ) -> Result<AtomicI16, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
source§impl<'de> Deserialize<'de> for AtomicI32
impl<'de> Deserialize<'de> for AtomicI32
fn deserialize<D>( deserializer: D ) -> Result<AtomicI32, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
source§impl<'de> Deserialize<'de> for AtomicI64
impl<'de> Deserialize<'de> for AtomicI64
fn deserialize<D>( deserializer: D ) -> Result<AtomicI64, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
source§impl<'de> Deserialize<'de> for AtomicIsize
impl<'de> Deserialize<'de> for AtomicIsize
fn deserialize<D>( deserializer: D ) -> Result<AtomicIsize, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
source§impl<'de> Deserialize<'de> for AtomicU8
impl<'de> Deserialize<'de> for AtomicU8
fn deserialize<D>( deserializer: D ) -> Result<AtomicU8, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
source§impl<'de> Deserialize<'de> for AtomicU16
impl<'de> Deserialize<'de> for AtomicU16
fn deserialize<D>( deserializer: D ) -> Result<AtomicU16, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
source§impl<'de> Deserialize<'de> for AtomicU32
impl<'de> Deserialize<'de> for AtomicU32
fn deserialize<D>( deserializer: D ) -> Result<AtomicU32, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
source§impl<'de> Deserialize<'de> for AtomicU64
impl<'de> Deserialize<'de> for AtomicU64
fn deserialize<D>( deserializer: D ) -> Result<AtomicU64, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
source§impl<'de> Deserialize<'de> for AtomicUsize
impl<'de> Deserialize<'de> for AtomicUsize
fn deserialize<D>( deserializer: D ) -> Result<AtomicUsize, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
source§impl<'de> Deserialize<'de> for Duration
impl<'de> Deserialize<'de> for Duration
fn deserialize<D>( deserializer: D ) -> Result<Duration, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
source§impl<'de> Deserialize<'de> for OsString
impl<'de> Deserialize<'de> for OsString
fn deserialize<D>( deserializer: D ) -> Result<OsString, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
source§impl<'de> Deserialize<'de> for PathBuf
impl<'de> Deserialize<'de> for PathBuf
fn deserialize<D>( deserializer: D ) -> Result<PathBuf, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
source§impl<'de> Deserialize<'de> for SystemTime
impl<'de> Deserialize<'de> for SystemTime
fn deserialize<D>( deserializer: D ) -> Result<SystemTime, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
source§impl<'de> Deserialize<'de> for Map<String, Value>
impl<'de> Deserialize<'de> for Map<String, Value>
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
impl<'de> Deserialize<'de> for Number
fn deserialize<D>( deserializer: D ) -> Result<Number, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
source§impl<'de> Deserialize<'de> for Testnet3
impl<'de> Deserialize<'de> for Testnet3
fn deserialize<__D>( __deserializer: __D ) -> Result<Testnet3, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
§impl<'de> Deserialize<'de> for Fq2Parameters
impl<'de> Deserialize<'de> for Fq2Parameters
fn deserialize<__D>( __deserializer: __D ) -> Result<Fq2Parameters, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
source§impl<'de, 'a> Deserialize<'de> for &'a strwhere
'de: 'a,
impl<'de, 'a> Deserialize<'de> for &'a strwhere 'de: 'a,
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 Pathwhere
'de: 'a,
impl<'de, 'a> Deserialize<'de> for &'a Pathwhere 'de: 'a,
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 [u8]where
'de: 'a,
impl<'de, 'a> Deserialize<'de> for &'a [u8]where 'de: 'a,
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>,
impl<'de, 'a, T> Deserialize<'de> for Cow<'a, T>where T: ToOwned + ?Sized, <T as ToOwned>::Owned: Deserialize<'de>,
fn deserialize<D>( deserializer: D ) -> Result<Cow<'a, T>, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
§impl<'de, E> Deserialize<'de> for Address<E>where
E: Environment,
impl<'de, E> Deserialize<'de> for Address<E>where E: Environment,
§fn deserialize<D>(
deserializer: D
) -> Result<Address<E>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>( deserializer: D ) -> Result<Address<E>, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
Deserializes an account address from a string or bytes.
§impl<'de, E> Deserialize<'de> for Boolean<E>where
E: Environment,
impl<'de, E> Deserialize<'de> for Boolean<E>where E: Environment,
§fn deserialize<D>(
deserializer: D
) -> Result<Boolean<E>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>( deserializer: D ) -> Result<Boolean<E>, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
Deserializes the boolean from a string or bytes.
§impl<'de, E> Deserialize<'de> for CircuitVerifyingKey<E>where
E: PairingEngine,
impl<'de, E> Deserialize<'de> for CircuitVerifyingKey<E>where E: PairingEngine,
fn deserialize<D>( deserializer: D ) -> Result<CircuitVerifyingKey<E>, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
§impl<'de, E> Deserialize<'de> for Field<E>where
E: Environment,
impl<'de, E> Deserialize<'de> for Field<E>where E: Environment,
§fn deserialize<D>(
deserializer: D
) -> Result<Field<E>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>( deserializer: D ) -> Result<Field<E>, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
Deserializes the field from a string or bytes.
§impl<'de, E> Deserialize<'de> for Group<E>where
E: Environment,
impl<'de, E> Deserialize<'de> for Group<E>where E: Environment,
§fn deserialize<D>(
deserializer: D
) -> Result<Group<E>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>( deserializer: D ) -> Result<Group<E>, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
Deserializes the group from a string or bytes.
§impl<'de, E> Deserialize<'de> for Scalar<E>where
E: Environment,
impl<'de, E> Deserialize<'de> for Scalar<E>where E: Environment,
§fn deserialize<D>(
deserializer: D
) -> Result<Scalar<E>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>( deserializer: D ) -> Result<Scalar<E>, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
Deserializes the scalar from a string or bytes.
§impl<'de, E> Deserialize<'de> for StringType<E>where
E: Environment,
impl<'de, E> Deserialize<'de> for StringType<E>where E: Environment,
§fn deserialize<D>(
deserializer: D
) -> Result<StringType<E>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>( deserializer: D ) -> Result<StringType<E>, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
Deserializes the string from bytes, if it is not human-readable.
§impl<'de, E, I> Deserialize<'de> for Integer<E, I>where
E: Environment,
I: IntegerType,
impl<'de, E, I> Deserialize<'de> for Integer<E, I>where E: Environment, I: IntegerType,
§fn deserialize<D>(
deserializer: D
) -> Result<Integer<E, I>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>( deserializer: D ) -> Result<Integer<E, I>, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
Deserializes the integer from a string or bytes.
source§impl<'de, E, const DEPTH: u8> Deserialize<'de> for MerklePath<E, DEPTH>where
E: Environment,
impl<'de, E, const DEPTH: u8> Deserialize<'de> for MerklePath<E, DEPTH>where E: Environment,
fn deserialize<D>( deserializer: D ) -> Result<MerklePath<E, DEPTH>, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
source§impl<'de, F, const PREFIX: u16> Deserialize<'de> for AleoID<F, PREFIX>where
F: FieldTrait,
impl<'de, F, const PREFIX: u16> Deserialize<'de> for AleoID<F, PREFIX>where F: FieldTrait,
fn deserialize<D>( deserializer: D ) -> Result<AleoID<F, PREFIX>, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
source§impl<'de, Idx> Deserialize<'de> for Range<Idx>where
Idx: Deserialize<'de>,
impl<'de, Idx> Deserialize<'de> for Range<Idx>where Idx: Deserialize<'de>,
fn deserialize<D>( deserializer: D ) -> Result<Range<Idx>, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
source§impl<'de, Idx> Deserialize<'de> for RangeFrom<Idx>where
Idx: Deserialize<'de>,
impl<'de, Idx> Deserialize<'de> for RangeFrom<Idx>where Idx: Deserialize<'de>,
fn deserialize<D>( deserializer: D ) -> Result<RangeFrom<Idx>, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
source§impl<'de, Idx> Deserialize<'de> for RangeInclusive<Idx>where
Idx: Deserialize<'de>,
impl<'de, Idx> Deserialize<'de> for RangeInclusive<Idx>where Idx: Deserialize<'de>,
fn deserialize<D>( deserializer: D ) -> Result<RangeInclusive<Idx>, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
source§impl<'de, Idx> Deserialize<'de> for RangeTo<Idx>where
Idx: Deserialize<'de>,
impl<'de, Idx> Deserialize<'de> for RangeTo<Idx>where Idx: Deserialize<'de>,
fn deserialize<D>( deserializer: D ) -> Result<RangeTo<Idx>, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
source§impl<'de, K, V> Deserialize<'de> for BTreeMap<K, V>where
K: Deserialize<'de> + Ord,
V: Deserialize<'de>,
impl<'de, K, V> Deserialize<'de> for BTreeMap<K, V>where K: Deserialize<'de> + Ord, V: Deserialize<'de>,
fn deserialize<D>( deserializer: D ) -> Result<BTreeMap<K, V>, <D as Deserializer<'de>>::Error>where D: Deserializer<'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,
impl<'de, K, V, S> Deserialize<'de> for HashMap<K, V, S>where K: Deserialize<'de> + Eq + Hash, V: Deserialize<'de>, S: BuildHasher + Default,
fn deserialize<D>( deserializer: D ) -> Result<HashMap<K, V, S>, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
source§impl<'de, N> Deserialize<'de> for Access<N>where
N: Network,
impl<'de, N> Deserialize<'de> for Access<N>where N: Network,
source§fn deserialize<D>(
deserializer: D
) -> Result<Access<N>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>( deserializer: D ) -> Result<Access<N>, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
Deserializes the access from a string or bytes.
source§impl<'de, N> Deserialize<'de> for Literal<N>where
N: Network,
impl<'de, N> Deserialize<'de> for Literal<N>where N: Network,
source§fn deserialize<D>(
deserializer: D
) -> Result<Literal<N>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>( deserializer: D ) -> Result<Literal<N>, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
Deserializes the literal from a string or bytes.
source§impl<'de, N> Deserialize<'de> for Plaintext<N>where
N: Network,
impl<'de, N> Deserialize<'de> for Plaintext<N>where N: Network,
source§fn deserialize<D>(
deserializer: D
) -> Result<Plaintext<N>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>( deserializer: D ) -> Result<Plaintext<N>, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
Deserializes the plaintext from a string or bytes.
source§impl<'de, N> Deserialize<'de> for Register<N>where
N: Network,
impl<'de, N> Deserialize<'de> for Register<N>where N: Network,
source§fn deserialize<D>(
deserializer: D
) -> Result<Register<N>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>( deserializer: D ) -> Result<Register<N>, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
Deserializes the register from a string or bytes.
source§impl<'de, N> Deserialize<'de> for Value<N>where
N: Network,
impl<'de, N> Deserialize<'de> for Value<N>where N: Network,
source§fn deserialize<D>(
deserializer: D
) -> Result<Value<N>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>( deserializer: D ) -> Result<Value<N>, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
Deserializes the value from a string or bytes.
source§impl<'de, N> Deserialize<'de> for FinalizeType<N>where
N: Network,
impl<'de, N> Deserialize<'de> for FinalizeType<N>where N: Network,
source§fn deserialize<D>(
deserializer: D
) -> Result<FinalizeType<N>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>( deserializer: D ) -> Result<FinalizeType<N>, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
Deserializes the finalize type from a string or bytes.
source§impl<'de, N> Deserialize<'de> for PlaintextType<N>where
N: Network,
impl<'de, N> Deserialize<'de> for PlaintextType<N>where N: Network,
source§fn deserialize<D>(
deserializer: D
) -> Result<PlaintextType<N>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>( deserializer: D ) -> Result<PlaintextType<N>, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
Deserializes the plaintext type from a string or bytes.
source§impl<'de, N> Deserialize<'de> for EntryType<N>where
N: Network,
impl<'de, N> Deserialize<'de> for EntryType<N>where N: Network,
source§fn deserialize<D>(
deserializer: D
) -> Result<EntryType<N>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>( deserializer: D ) -> Result<EntryType<N>, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
Deserializes the entry type from a string or bytes.
source§impl<'de, N> Deserialize<'de> for RegisterType<N>where
N: Network,
impl<'de, N> Deserialize<'de> for RegisterType<N>where N: Network,
source§fn deserialize<D>(
deserializer: D
) -> Result<RegisterType<N>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>( deserializer: D ) -> Result<RegisterType<N>, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
Deserializes the register type from a string or bytes.
source§impl<'de, N> Deserialize<'de> for ValueType<N>where
N: Network,
impl<'de, N> Deserialize<'de> for ValueType<N>where N: Network,
source§fn deserialize<D>(
deserializer: D
) -> Result<ValueType<N>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>( deserializer: D ) -> Result<ValueType<N>, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
Deserializes the value type from a string or bytes.
source§impl<'de, N> Deserialize<'de> for InputID<N>where
N: Network,
impl<'de, N> Deserialize<'de> for InputID<N>where N: Network,
source§fn deserialize<D>(
deserializer: D
) -> Result<InputID<N>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>( deserializer: D ) -> Result<InputID<N>, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
Deserializes the input ID from a string or bytes.
source§impl<'de, N> Deserialize<'de> for ComputeKey<N>where
N: Network,
impl<'de, N> Deserialize<'de> for ComputeKey<N>where N: Network,
source§fn deserialize<D>(
deserializer: D
) -> Result<ComputeKey<N>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>( deserializer: D ) -> Result<ComputeKey<N>, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
Deserializes an account compute key from bytes.
source§impl<'de, N> Deserialize<'de> for GraphKey<N>where
N: Network,
impl<'de, N> Deserialize<'de> for GraphKey<N>where N: Network,
source§fn deserialize<D>(
deserializer: D
) -> Result<GraphKey<N>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>( deserializer: D ) -> Result<GraphKey<N>, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
Deserializes an account graph key from bytes.
source§impl<'de, N> Deserialize<'de> for PrivateKey<N>where
N: Network,
impl<'de, N> Deserialize<'de> for PrivateKey<N>where N: Network,
source§fn deserialize<D>(
deserializer: D
) -> Result<PrivateKey<N>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>( deserializer: D ) -> Result<PrivateKey<N>, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
Deserializes an account private key from a string or bytes.
source§impl<'de, N> Deserialize<'de> for Signature<N>where
N: Network,
impl<'de, N> Deserialize<'de> for Signature<N>where N: Network,
source§fn deserialize<D>(
deserializer: D
) -> Result<Signature<N>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>( deserializer: D ) -> Result<Signature<N>, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
Deserializes the signature from a string or bytes.
source§impl<'de, N> Deserialize<'de> for ViewKey<N>where
N: Network,
impl<'de, N> Deserialize<'de> for ViewKey<N>where N: Network,
source§fn deserialize<D>(
deserializer: D
) -> Result<ViewKey<N>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>( deserializer: D ) -> Result<ViewKey<N>, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
Deserializes an account view key from a string or bytes.
source§impl<'de, N> Deserialize<'de> for Ciphertext<N>where
N: Network,
impl<'de, N> Deserialize<'de> for Ciphertext<N>where N: Network,
source§fn deserialize<D>(
deserializer: D
) -> Result<Ciphertext<N>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>( deserializer: D ) -> Result<Ciphertext<N>, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
Deserializes the ciphertext from a string or bytes.
source§impl<'de, N> Deserialize<'de> for Future<N>where
N: Network,
impl<'de, N> Deserialize<'de> for Future<N>where N: Network,
source§fn deserialize<D>(
deserializer: D
) -> Result<Future<N>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>( deserializer: D ) -> Result<Future<N>, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
Deserializes the future from a string or bytes.
source§impl<'de, N> Deserialize<'de> for Identifier<N>where
N: Network,
impl<'de, N> Deserialize<'de> for Identifier<N>where N: Network,
source§fn deserialize<D>(
deserializer: D
) -> Result<Identifier<N>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>( deserializer: D ) -> Result<Identifier<N>, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
Deserializes the identifier from a string or bytes.
source§impl<'de, N> Deserialize<'de> for Record<N, Plaintext<N>>where
N: Network,
impl<'de, N> Deserialize<'de> for Record<N, Plaintext<N>>where N: Network,
source§fn deserialize<D>(
deserializer: D
) -> Result<Record<N, Plaintext<N>>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>( deserializer: D ) -> Result<Record<N, Plaintext<N>>, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
Deserializes the record plaintext from a string or bytes.
source§impl<'de, N> Deserialize<'de> for Record<N, Ciphertext<N>>where
N: Network,
impl<'de, N> Deserialize<'de> for Record<N, Ciphertext<N>>where N: Network,
source§fn deserialize<D>(
deserializer: D
) -> Result<Record<N, Ciphertext<N>>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>( deserializer: D ) -> Result<Record<N, Ciphertext<N>>, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
Deserializes the record ciphertext from a string or bytes.
source§impl<'de, N> Deserialize<'de> for ArrayType<N>where
N: Network,
impl<'de, N> Deserialize<'de> for ArrayType<N>where N: Network,
source§fn deserialize<D>(
deserializer: D
) -> Result<ArrayType<N>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>( deserializer: D ) -> Result<ArrayType<N>, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
Deserializes the array type from a string or bytes.
source§impl<'de, N> Deserialize<'de> for RecordType<N>where
N: Network,
impl<'de, N> Deserialize<'de> for RecordType<N>where N: Network,
source§fn deserialize<D>(
deserializer: D
) -> Result<RecordType<N>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>( deserializer: D ) -> Result<RecordType<N>, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
Deserializes the record type from a string or bytes.
source§impl<'de, N> Deserialize<'de> for StructType<N>where
N: Network,
impl<'de, N> Deserialize<'de> for StructType<N>where N: Network,
source§fn deserialize<D>(
deserializer: D
) -> Result<StructType<N>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>( deserializer: D ) -> Result<StructType<N>, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
Deserializes the struct type from a string or bytes.
source§impl<'de, N> Deserialize<'de> for ProgramID<N>where
N: Network,
impl<'de, N> Deserialize<'de> for ProgramID<N>where N: Network,
source§fn deserialize<D>(
deserializer: D
) -> Result<ProgramID<N>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>( deserializer: D ) -> Result<ProgramID<N>, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
Deserializes the program ID from a string or bytes.
source§impl<'de, N> Deserialize<'de> for Locator<N>where
N: Network,
impl<'de, N> Deserialize<'de> for Locator<N>where N: Network,
source§fn deserialize<D>(
deserializer: D
) -> Result<Locator<N>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>( deserializer: D ) -> Result<Locator<N>, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
Deserializes the locator from a string or bytes.
source§impl<'de, N> Deserialize<'de> for ProgramOwner<N>where
N: Network,
impl<'de, N> Deserialize<'de> for ProgramOwner<N>where N: Network,
source§fn deserialize<D>(
deserializer: D
) -> Result<ProgramOwner<N>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>( deserializer: D ) -> Result<ProgramOwner<N>, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
Deserializes the owner from a string or bytes.
source§impl<'de, N> Deserialize<'de> for Request<N>where
N: Network,
impl<'de, N> Deserialize<'de> for Request<N>where N: Network,
source§fn deserialize<D>(
deserializer: D
) -> Result<Request<N>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>( deserializer: D ) -> Result<Request<N>, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
Deserializes the request from a string or bytes.
source§impl<'de, N> Deserialize<'de> for HeaderLeaf<N>where
N: Network,
impl<'de, N> Deserialize<'de> for HeaderLeaf<N>where N: Network,
source§fn deserialize<D>(
deserializer: D
) -> Result<HeaderLeaf<N>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>( deserializer: D ) -> Result<HeaderLeaf<N>, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
Deserializes the leaf from a string or bytes.
source§impl<'de, N> Deserialize<'de> for StatePath<N>where
N: Network,
impl<'de, N> Deserialize<'de> for StatePath<N>where N: Network,
source§fn deserialize<D>(
deserializer: D
) -> Result<StatePath<N>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>( deserializer: D ) -> Result<StatePath<N>, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
Deserializes the state path from a string or bytes.
source§impl<'de, N> Deserialize<'de> for TransactionLeaf<N>where
N: Network,
impl<'de, N> Deserialize<'de> for TransactionLeaf<N>where N: Network,
source§fn deserialize<D>(
deserializer: D
) -> Result<TransactionLeaf<N>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>( deserializer: D ) -> Result<TransactionLeaf<N>, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
Deserializes the leaf from a string or bytes.
source§impl<'de, N> Deserialize<'de> for TransitionLeaf<N>where
N: Network,
impl<'de, N> Deserialize<'de> for TransitionLeaf<N>where N: Network,
source§fn deserialize<D>(
deserializer: D
) -> Result<TransitionLeaf<N>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>( deserializer: D ) -> Result<TransitionLeaf<N>, <D as Deserializer<'de>>::Error>where D: Deserializer<'de>,
Deserializes the leaf from a string or bytes.