pub struct TestEvent {
pub schema_version: u32,
pub sequence: u64,
pub time: u64,
pub pid: Option<u32>,
pub thread: Option<String>,
pub level: Level,
pub target: Option<String>,
pub message: String,
pub fields: BTreeMap<String, Value>,
pub source: Option<SourceLocation>,
}Fields§
§schema_version: u32§sequence: u64§time: u64§pid: Option<u32>§thread: Option<String>§level: Level§target: Option<String>§message: String§fields: BTreeMap<String, Value>§source: Option<SourceLocation>Implementations§
Source§impl TestEvent
impl TestEvent
pub fn new(level: Level, message: impl Into<String>) -> Self
pub fn with_target(self, target: impl Into<String>) -> Self
pub fn with_source( self, module: impl Into<String>, file: impl Into<String>, line: u32, ) -> Self
pub fn with_fields(self, fields: BTreeMap<String, Value>) -> Self
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TestEvent
impl<'de> Deserialize<'de> for TestEvent
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
impl StructuralPartialEq for TestEvent
Auto Trait Implementations§
impl Freeze for TestEvent
impl RefUnwindSafe for TestEvent
impl Send for TestEvent
impl Sync for TestEvent
impl Unpin for TestEvent
impl UnsafeUnpin for TestEvent
impl UnwindSafe for TestEvent
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