pub enum LogFormat {
Full(Format<Full>),
Compact(Format<Compact>),
Pretty(Format<Pretty>),
Json(Format<Json>),
}Variants§
Implementations§
Source§impl LogFormat
impl LogFormat
pub fn get_format_fields(&self) -> LogFormatFields
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LogFormat
impl<'de> Deserialize<'de> for LogFormat
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<S, N> FormatEvent<S, N> for LogFormat
impl<S, N> FormatEvent<S, N> for LogFormat
Source§fn format_event(
&self,
ctx: &FmtContext<'_, S, N>,
writer: Writer<'_>,
event: &Event<'_>,
) -> Result
fn format_event( &self, ctx: &FmtContext<'_, S, N>, writer: Writer<'_>, event: &Event<'_>, ) -> Result
Auto Trait Implementations§
impl Freeze for LogFormat
impl RefUnwindSafe for LogFormat
impl Send for LogFormat
impl Sync for LogFormat
impl Unpin for LogFormat
impl UnwindSafe for LogFormat
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