pub struct LogEntry<'a> { /* private fields */ }Expand description
Log entry.
Implementations§
Source§impl<'a> LogEntry<'a>
impl<'a> LogEntry<'a>
pub fn builder( source: impl Into<Cow<'a, str>>, level: impl Into<Cow<'a, str>>, text: impl Into<Cow<'a, str>>, timestamp: Timestamp, ) -> LogEntryBuilder<'a>
pub fn source(&self) -> &str
pub fn level(&self) -> &str
pub fn text(&self) -> &str
pub fn category(&self) -> Option<&str>
pub fn timestamp(&self) -> &Timestamp
pub fn url(&self) -> Option<&str>
pub fn lineNumber(&self) -> Option<i64>
pub fn stackTrace(&self) -> Option<&StackTrace>
pub fn networkRequestId(&self) -> Option<&RequestId<'a>>
pub fn workerId(&self) -> Option<&str>
pub fn args(&self) -> Option<&[RemoteObject]>
Trait Implementations§
Source§impl<'de, 'a> Deserialize<'de> for LogEntry<'a>
impl<'de, 'a> Deserialize<'de> for LogEntry<'a>
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
Auto Trait Implementations§
impl<'a> Freeze for LogEntry<'a>
impl<'a> RefUnwindSafe for LogEntry<'a>
impl<'a> Send for LogEntry<'a>
impl<'a> Sync for LogEntry<'a>
impl<'a> Unpin for LogEntry<'a>
impl<'a> UnsafeUnpin for LogEntry<'a>
impl<'a> UnwindSafe for LogEntry<'a>
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