Struct smart_config::de::Serde
source · pub struct Serde<const EXPECTING: u8>;
Expand description
Deserializer powered by serde
. Usually created with the help of Serde!
macro;
see its docs for the examples of usage.
Trait Implementations§
source§impl<T: Serialize + DeserializeOwned, const EXPECTING: u8> DeserializeParam<T> for Serde<EXPECTING>
impl<T: Serialize + DeserializeOwned, const EXPECTING: u8> DeserializeParam<T> for Serde<EXPECTING>
source§const EXPECTING: BasicTypes = _
const EXPECTING: BasicTypes = _
Describes which parameter this deserializer is expecting.
source§fn describe(&self, _description: &mut TypeDescription)
fn describe(&self, _description: &mut TypeDescription)
Additional info about the deserialized type, e.g., extended description.
source§fn deserialize_param(
&self,
ctx: DeserializeContext<'_>,
param: &'static ParamMetadata,
) -> Result<T, ErrorWithOrigin>
fn deserialize_param( &self, ctx: DeserializeContext<'_>, param: &'static ParamMetadata, ) -> Result<T, ErrorWithOrigin>
Performs deserialization given the context and param metadata. Read more
Auto Trait Implementations§
impl<const EXPECTING: u8> Freeze for Serde<EXPECTING>
impl<const EXPECTING: u8> RefUnwindSafe for Serde<EXPECTING>
impl<const EXPECTING: u8> Send for Serde<EXPECTING>
impl<const EXPECTING: u8> Sync for Serde<EXPECTING>
impl<const EXPECTING: u8> Unpin for Serde<EXPECTING>
impl<const EXPECTING: u8> UnwindSafe for Serde<EXPECTING>
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