#[non_exhaustive]pub struct LogEntrySourceLocation {
pub file: String,
pub line: i64,
pub function: String,
/* private fields */
}Expand description
Additional information about the source code location that produced the log entry.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.file: StringOptional. Source file name. Depending on the runtime environment, this might be a simple name or a fully-qualified name.
line: i64Optional. Line within the source file. 1-based; 0 indicates no line number available.
function: StringOptional. Human-readable name of the function or method being invoked, with
optional context such as the class or package name. This information may be
used in contexts such as the logs viewer, where a file and line number are
less meaningful. The format can vary by language. For example:
qual.if.ied.Class.method (Java), dir/package.func (Go), function
(Python).
Implementations§
Trait Implementations§
Source§impl Clone for LogEntrySourceLocation
impl Clone for LogEntrySourceLocation
Source§fn clone(&self) -> LogEntrySourceLocation
fn clone(&self) -> LogEntrySourceLocation
Returns a duplicate of the value. Read more
1.0.0 · 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 LogEntrySourceLocation
impl Debug for LogEntrySourceLocation
Source§impl Default for LogEntrySourceLocation
impl Default for LogEntrySourceLocation
Source§fn default() -> LogEntrySourceLocation
fn default() -> LogEntrySourceLocation
Returns the “default value” for a type. Read more
Source§impl Message for LogEntrySourceLocation
impl Message for LogEntrySourceLocation
Source§impl PartialEq for LogEntrySourceLocation
impl PartialEq for LogEntrySourceLocation
impl StructuralPartialEq for LogEntrySourceLocation
Auto Trait Implementations§
impl Freeze for LogEntrySourceLocation
impl RefUnwindSafe for LogEntrySourceLocation
impl Send for LogEntrySourceLocation
impl Sync for LogEntrySourceLocation
impl Unpin for LogEntrySourceLocation
impl UnwindSafe for LogEntrySourceLocation
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