Struct bones_ecs::prelude::SchemaDeserializer
pub struct SchemaDeserializer(pub &'static Schema);
Expand description
A struct that implements DeserializeSeed
and can be used to deserialize values matching a
given [Schema
].
This will error if there are opaque types in the schema that cannot be deserialized.
Tuple Fields§
§0: &'static Schema
Trait Implementations§
§impl<'de> DeserializeSeed<'de> for SchemaDeserializer
impl<'de> DeserializeSeed<'de> for SchemaDeserializer
§fn deserialize<D>(
self,
deserializer: D,
) -> Result<<SchemaDeserializer as DeserializeSeed<'de>>::Value, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
self,
deserializer: D,
) -> Result<<SchemaDeserializer as DeserializeSeed<'de>>::Value, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Equivalent to the more common
Deserialize::deserialize
method, except
with some initial piece of data (the seed) passed in.Auto Trait Implementations§
impl Freeze for SchemaDeserializer
impl !RefUnwindSafe for SchemaDeserializer
impl Send for SchemaDeserializer
impl Sync for SchemaDeserializer
impl Unpin for SchemaDeserializer
impl !UnwindSafe for SchemaDeserializer
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