Struct zvariant::OwnedStructureSeed
source · pub struct OwnedStructureSeed(/* private fields */);
Expand description
Use this to deserialize an OwnedStructure
.
Trait Implementations§
source§impl Clone for OwnedStructureSeed
impl Clone for OwnedStructureSeed
source§fn clone(&self) -> OwnedStructureSeed
fn clone(&self) -> OwnedStructureSeed
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for OwnedStructureSeed
impl Debug for OwnedStructureSeed
source§impl<'de> DeserializeSeed<'de> for OwnedStructureSeed
impl<'de> DeserializeSeed<'de> for OwnedStructureSeed
§type Value = OwnedStructure
type Value = OwnedStructure
The type produced by using this seed.
source§fn deserialize<D: Deserializer<'de>>(
self,
deserializer: D,
) -> Result<Self::Value, D::Error>
fn deserialize<D: Deserializer<'de>>( self, deserializer: D, ) -> Result<Self::Value, D::Error>
Equivalent to the more common
Deserialize::deserialize
method, except
with some initial piece of data (the seed) passed in.source§impl DynamicType for OwnedStructureSeed
impl DynamicType for OwnedStructureSeed
source§fn dynamic_signature(&self) -> Signature<'_>
fn dynamic_signature(&self) -> Signature<'_>
Get the signature for the implementing type. Read more
source§impl PartialEq for OwnedStructureSeed
impl PartialEq for OwnedStructureSeed
source§fn eq(&self, other: &OwnedStructureSeed) -> bool
fn eq(&self, other: &OwnedStructureSeed) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for OwnedStructureSeed
impl StructuralPartialEq for OwnedStructureSeed
Auto Trait Implementations§
impl Freeze for OwnedStructureSeed
impl RefUnwindSafe for OwnedStructureSeed
impl Send for OwnedStructureSeed
impl Sync for OwnedStructureSeed
impl Unpin for OwnedStructureSeed
impl UnwindSafe for OwnedStructureSeed
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)