Struct slog_json::Json[][src]

pub struct Json<W: Write> { /* fields omitted */ }

Json Drain

Each record will be printed as a Json map to a given io

Implementations

impl<W> Json<W> where
    W: Write
[src]

pub fn default(io: W) -> Json<W>[src]

New Json Drain with default key-value pairs added

pub fn new(io: W) -> JsonBuilder<W>[src]

Build custom Json Drain

Trait Implementations

impl<W> Drain for Json<W> where
    W: Write
[src]

type Ok = ()

Type returned by this drain Read more

type Err = Error

Type of potential errors that can be returned by this Drain

Auto Trait Implementations

impl<W> !RefUnwindSafe for Json<W>

impl<W> Send for Json<W> where
    W: Send

impl<W> !Sync for Json<W>

impl<W> Unpin for Json<W> where
    W: Unpin

impl<W> UnwindSafe for Json<W> where
    W: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.