Struct candid::de::IDLDeserialize
source · [−]pub struct IDLDeserialize<'de> { /* private fields */ }
Expand description
Use this struct to deserialize a sequence of Rust values (heterogeneous) from IDL binary message.
Implementations
sourceimpl<'de> IDLDeserialize<'de>
impl<'de> IDLDeserialize<'de>
sourcepub fn new(bytes: &'de [u8]) -> Result<Self>
pub fn new(bytes: &'de [u8]) -> Result<Self>
Create a new deserializer with IDL binary message.
sourcepub fn get_value<T>(&mut self) -> Result<T>where
T: Deserialize<'de> + CandidType,
pub fn get_value<T>(&mut self) -> Result<T>where
T: Deserialize<'de> + CandidType,
Deserialize one value from deserializer.
pub fn get_value_with_type(
&mut self,
env: &TypeEnv,
expected_type: &Type
) -> Result<IDLValue>
Auto Trait Implementations
impl<'de> RefUnwindSafe for IDLDeserialize<'de>
impl<'de> Send for IDLDeserialize<'de>
impl<'de> Sync for IDLDeserialize<'de>
impl<'de> Unpin for IDLDeserialize<'de>
impl<'de> UnwindSafe for IDLDeserialize<'de>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more