Struct structlog::event::Event [−][src]
Simple event to record to the output channel.
Fields
created: DateTime<Utc>
Implementations
impl Event
[src]
pub fn new() -> Event
[src]
pub fn add_field(&mut self, key: String, value: String) -> &mut Self
[src]
Chainable method to add a key:value pair into the event payload. This enables the event to be enriched at multiple points during an operation to enable a better understanding of the state of things at the time of the event.
pub fn info(self) -> Event
[src]
pub fn debug(self) -> Event
[src]
pub fn warn(self) -> Event
[src]
pub fn error(self) -> Event
[src]
Trait Implementations
impl Debug for Event
[src]
impl<'de> Deserialize<'de> for Event
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Display for Event
[src]
impl From<&'_ str> for Event
[src]
impl From<Box<dyn Error + 'static, Global>> for Event
[src]
impl FromStr for Event
[src]
type Err = ParseEventError
The associated error which can be returned from parsing.
fn from_str(message: &str) -> Result<Self, Self::Err>
[src]
impl Serialize for Event
[src]
Auto Trait Implementations
impl RefUnwindSafe for Event
[src]
impl Send for Event
[src]
impl Sync for Event
[src]
impl Unpin for Event
[src]
impl UnwindSafe for Event
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,