Struct jormungandr_automation::jormungandr::logger::LogEntry
source · pub struct LogEntry {
pub level: Level,
pub ts: String,
pub fields: HashMap<String, String>,
pub target: String,
pub span: Option<HashMap<String, String>>,
pub spans: Option<Vec<HashMap<String, String>>>,
}
Fields§
§level: Level
§ts: String
§fields: HashMap<String, String>
§target: String
§span: Option<HashMap<String, String>>
§spans: Option<Vec<HashMap<String, String>>>
Implementations§
source§impl LogEntry
impl LogEntry
const MESSAGE: &'static str = "message"
pub fn reason_contains(&self, reason_part: &str) -> bool
pub fn error_contains(&self, error_part: &str) -> bool
pub fn block_date(&self) -> Option<BlockDate>
pub fn is_later_than(&self, reference_time: &SystemTime) -> bool
pub fn message(&self) -> String
Trait Implementations§
source§impl<'de> Deserialize<'de> for LogEntry
impl<'de> Deserialize<'de> for LogEntry
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 From<LogEntryLegacy> for LogEntry
impl From<LogEntryLegacy> for LogEntry
source§fn from(log_entry: LogEntryLegacy) -> Self
fn from(log_entry: LogEntryLegacy) -> Self
Converts to this type from the input type.
impl Send for LogEntry
impl Sync for LogEntry
Auto Trait Implementations§
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request