Struct relay_metrics::meta::Location
source · pub struct Location {
pub filename: Option<String>,
pub abs_path: Option<String>,
pub module: Option<String>,
pub function: Option<String>,
pub lineno: Option<u64>,
pub pre_context: Vec<Option<String>>,
pub context_line: Option<String>,
pub post_context: Vec<Option<String>>,
}
Expand description
A code location.
Fields§
§filename: Option<String>
The relative file path.
abs_path: Option<String>
The absolute file path.
module: Option<String>
The containing module name or path.
function: Option<String>
The containing function name.
lineno: Option<u64>
The line number.
pre_context: Vec<Option<String>>
Source code leading up to lineno
.
context_line: Option<String>
Source code of the current line (lineno
).
post_context: Vec<Option<String>>
Source code of the lines after lineno
.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Location
impl<'de> Deserialize<'de> for Location
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 Eq for Location
impl StructuralPartialEq for Location
Auto Trait Implementations§
impl Freeze for Location
impl RefUnwindSafe for Location
impl Send for Location
impl Sync for Location
impl Unpin for Location
impl UnwindSafe for Location
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.