Struct log4rs::encode::pattern::PatternEncoderDeserializer
source · pub struct PatternEncoderDeserializer;
Expand description
A deserializer for the PatternEncoder
.
§Configuration
kind: pattern
# The pattern to follow when formatting logs. Defaults to
# "{d} {l} {t} - {m}{n}".
pattern: "{d} {l} {t} - {m}{n}"
Trait Implementations§
source§impl Clone for PatternEncoderDeserializer
impl Clone for PatternEncoderDeserializer
source§fn clone(&self) -> PatternEncoderDeserializer
fn clone(&self) -> PatternEncoderDeserializer
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 PatternEncoderDeserializer
impl Debug for PatternEncoderDeserializer
source§impl Deserialize for PatternEncoderDeserializer
impl Deserialize for PatternEncoderDeserializer
§type Config = PatternEncoderConfig
type Config = PatternEncoderConfig
This deserializer’s configuration.
source§fn deserialize(
&self,
config: PatternEncoderConfig,
_: &Deserializers
) -> Result<Box<dyn Encode>>
fn deserialize( &self, config: PatternEncoderConfig, _: &Deserializers ) -> Result<Box<dyn Encode>>
Create a new trait object based on the provided config.
source§impl Hash for PatternEncoderDeserializer
impl Hash for PatternEncoderDeserializer
source§impl PartialEq for PatternEncoderDeserializer
impl PartialEq for PatternEncoderDeserializer
source§fn eq(&self, other: &PatternEncoderDeserializer) -> bool
fn eq(&self, other: &PatternEncoderDeserializer) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for PatternEncoderDeserializer
impl Eq for PatternEncoderDeserializer
impl StructuralPartialEq for PatternEncoderDeserializer
Auto Trait Implementations§
impl RefUnwindSafe for PatternEncoderDeserializer
impl Send for PatternEncoderDeserializer
impl Sync for PatternEncoderDeserializer
impl Unpin for PatternEncoderDeserializer
impl UnwindSafe for PatternEncoderDeserializer
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.