[][src]Enum sloggers::types::Format

pub enum Format {
    Full,
    Compact,
}

The format of log records.

Examples

The default value:

use sloggers::types::Format;

assert_eq!(Format::default(), Format::Full);

Variants

Full

Full format.

Compact

Compact format.

Trait Implementations

impl Eq for Format[src]

impl Default for Format[src]

impl Clone for Format[src]

impl PartialEq<Format> for Format[src]

impl Copy for Format[src]

impl Debug for Format[src]

impl FromStr for Format[src]

type Err = Error

The associated error which can be returned from parsing.

impl Serialize for Format[src]

impl<'de> Deserialize<'de> for Format[src]

Auto Trait Implementations

impl Unpin for Format

impl Sync for Format

impl Send for Format

impl UnwindSafe for Format

impl RefUnwindSafe for Format

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

impl<T> From<T> for 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.

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

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

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

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]