Trait log4rs::file::Deserialize
source · [−]pub trait Deserialize: Send + Sync + 'static {
type Trait: ?Sized + Deserializable;
type Config: DeserializeOwned;
fn deserialize(
&self,
config: Self::Config,
deserializers: &Deserializers
) -> Result<Box<Self::Trait>, Box<dyn Error + Sync + Send>>;
}
Expand description
A trait for objects that can deserialize log4rs components out of a config.
Associated Types
type Trait: ?Sized + Deserializable
type Trait: ?Sized + Deserializable
The trait that this deserializer will create.
type Config: DeserializeOwned
type Config: DeserializeOwned
This deserializer’s configuration.