Struct smart_config::de::Repeated
source · pub struct Repeated<De>(pub De);
Expand description
Tuple Fields§
§0: De
Trait Implementations§
source§impl<T: 'static, De, const N: usize> DeserializeParam<[T; N]> for Repeated<De>where
De: DeserializeParam<T>,
impl<T: 'static, De, const N: usize> DeserializeParam<[T; N]> for Repeated<De>where
De: DeserializeParam<T>,
source§const EXPECTING: BasicTypes = BasicTypes::ARRAY
const EXPECTING: BasicTypes = BasicTypes::ARRAY
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; N], ErrorWithOrigin>
fn deserialize_param( &self, ctx: DeserializeContext<'_>, param: &'static ParamMetadata, ) -> Result<[T; N], ErrorWithOrigin>
Performs deserialization given the context and param metadata. Read more
source§impl<T, De> DeserializeParam<BTreeSet<T>> for Repeated<De>
impl<T, De> DeserializeParam<BTreeSet<T>> for Repeated<De>
source§const EXPECTING: BasicTypes = BasicTypes::ARRAY
const EXPECTING: BasicTypes = BasicTypes::ARRAY
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<BTreeSet<T>, ErrorWithOrigin>
fn deserialize_param( &self, ctx: DeserializeContext<'_>, param: &'static ParamMetadata, ) -> Result<BTreeSet<T>, ErrorWithOrigin>
Performs deserialization given the context and param metadata. Read more
source§impl<T, S, De> DeserializeParam<HashSet<T, S>> for Repeated<De>
impl<T, S, De> DeserializeParam<HashSet<T, S>> for Repeated<De>
source§const EXPECTING: BasicTypes = BasicTypes::ARRAY
const EXPECTING: BasicTypes = BasicTypes::ARRAY
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<HashSet<T, S>, ErrorWithOrigin>
fn deserialize_param( &self, ctx: DeserializeContext<'_>, param: &'static ParamMetadata, ) -> Result<HashSet<T, S>, ErrorWithOrigin>
Performs deserialization given the context and param metadata. Read more
source§impl<T: 'static, De> DeserializeParam<Vec<T>> for Repeated<De>where
De: DeserializeParam<T>,
impl<T: 'static, De> DeserializeParam<Vec<T>> for Repeated<De>where
De: DeserializeParam<T>,
source§const EXPECTING: BasicTypes = BasicTypes::ARRAY
const EXPECTING: BasicTypes = BasicTypes::ARRAY
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<Vec<T>, ErrorWithOrigin>
fn deserialize_param( &self, ctx: DeserializeContext<'_>, param: &'static ParamMetadata, ) -> Result<Vec<T>, ErrorWithOrigin>
Performs deserialization given the context and param metadata. Read more
Auto Trait Implementations§
impl<De> Freeze for Repeated<De>where
De: Freeze,
impl<De> RefUnwindSafe for Repeated<De>where
De: RefUnwindSafe,
impl<De> Send for Repeated<De>where
De: Send,
impl<De> Sync for Repeated<De>where
De: Sync,
impl<De> Unpin for Repeated<De>where
De: Unpin,
impl<De> UnwindSafe for Repeated<De>where
De: UnwindSafe,
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