Struct log4rs::append::console::ConsoleAppenderDeserializer
source · pub struct ConsoleAppenderDeserializer;
Expand description
A deserializer for the ConsoleAppender
.
§Configuration
kind: console
# The output to write to. One of `stdout` or `stderr`. Defaults to `stdout`.
target: stdout
# Set this boolean when the console appender must only write when the target is a TTY.
tty_only: false
# The encoder to use to format output. Defaults to `kind: pattern`.
encoder:
kind: pattern
Trait Implementations§
source§impl Clone for ConsoleAppenderDeserializer
impl Clone for ConsoleAppenderDeserializer
source§fn clone(&self) -> ConsoleAppenderDeserializer
fn clone(&self) -> ConsoleAppenderDeserializer
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 ConsoleAppenderDeserializer
impl Debug for ConsoleAppenderDeserializer
source§impl Default for ConsoleAppenderDeserializer
impl Default for ConsoleAppenderDeserializer
source§fn default() -> ConsoleAppenderDeserializer
fn default() -> ConsoleAppenderDeserializer
Returns the “default value” for a type. Read more
source§impl Deserialize for ConsoleAppenderDeserializer
impl Deserialize for ConsoleAppenderDeserializer
§type Config = ConsoleAppenderConfig
type Config = ConsoleAppenderConfig
This deserializer’s configuration.
source§fn deserialize(
&self,
config: ConsoleAppenderConfig,
deserializers: &Deserializers
) -> Result<Box<dyn Append>>
fn deserialize( &self, config: ConsoleAppenderConfig, deserializers: &Deserializers ) -> Result<Box<dyn Append>>
Create a new trait object based on the provided config.
source§impl Hash for ConsoleAppenderDeserializer
impl Hash for ConsoleAppenderDeserializer
source§impl PartialEq for ConsoleAppenderDeserializer
impl PartialEq for ConsoleAppenderDeserializer
source§fn eq(&self, other: &ConsoleAppenderDeserializer) -> bool
fn eq(&self, other: &ConsoleAppenderDeserializer) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ConsoleAppenderDeserializer
impl Eq for ConsoleAppenderDeserializer
impl StructuralPartialEq for ConsoleAppenderDeserializer
Auto Trait Implementations§
impl RefUnwindSafe for ConsoleAppenderDeserializer
impl Send for ConsoleAppenderDeserializer
impl Sync for ConsoleAppenderDeserializer
impl Unpin for ConsoleAppenderDeserializer
impl UnwindSafe for ConsoleAppenderDeserializer
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.