pub struct LogSearchHit {
pub ts: String,
pub host: String,
pub level: Level,
pub target: Option<Option<String>>,
pub message: String,
pub file_path: String,
pub line_no: i32,
}Fields§
§ts: Stringtimestamp of the log line itself, not of the file containing it
host: String§level: Level§target: Option<Option<String>>the tracing target that emitted the line
message: String§file_path: Stringthe log file the line came from
line_no: i32offset of the line within its file
Implementations§
Trait Implementations§
Source§impl Clone for LogSearchHit
impl Clone for LogSearchHit
Source§fn clone(&self) -> LogSearchHit
fn clone(&self) -> LogSearchHit
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LogSearchHit
impl Debug for LogSearchHit
Source§impl Default for LogSearchHit
impl Default for LogSearchHit
Source§fn default() -> LogSearchHit
fn default() -> LogSearchHit
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LogSearchHit
impl<'de> Deserialize<'de> for LogSearchHit
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 PartialEq for LogSearchHit
impl PartialEq for LogSearchHit
Source§impl Serialize for LogSearchHit
impl Serialize for LogSearchHit
impl StructuralPartialEq for LogSearchHit
Auto Trait Implementations§
impl Freeze for LogSearchHit
impl RefUnwindSafe for LogSearchHit
impl Send for LogSearchHit
impl Sync for LogSearchHit
impl Unpin for LogSearchHit
impl UnsafeUnpin for LogSearchHit
impl UnwindSafe for LogSearchHit
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