Struct sentry_types::protocol::v7::TemplateInfo
source · pub struct TemplateInfo {
pub filename: Option<String>,
pub abs_path: Option<String>,
pub lineno: Option<u64>,
pub colno: Option<u64>,
pub pre_context: Vec<String>,
pub context_line: Option<String>,
pub post_context: Vec<String>,
}
Expand description
Represents template debug info.
Fields§
§filename: Option<String>
The filename (basename only).
abs_path: Option<String>
If known the absolute path.
lineno: Option<u64>
The line number if known.
colno: Option<u64>
The column number if known.
pre_context: Vec<String>
The sources of the lines leading up to the current line.
context_line: Option<String>
The current line as source.
post_context: Vec<String>
The sources of the lines after the current line.
Trait Implementations§
source§impl Clone for TemplateInfo
impl Clone for TemplateInfo
source§fn clone(&self) -> TemplateInfo
fn clone(&self) -> TemplateInfo
Returns a copy 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 TemplateInfo
impl Debug for TemplateInfo
source§impl Default for TemplateInfo
impl Default for TemplateInfo
source§fn default() -> TemplateInfo
fn default() -> TemplateInfo
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for TemplateInfo
impl<'de> Deserialize<'de> for TemplateInfo
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 TemplateInfo
impl PartialEq for TemplateInfo
source§impl Serialize for TemplateInfo
impl Serialize for TemplateInfo
impl StructuralPartialEq for TemplateInfo
Auto Trait Implementations§
impl Freeze for TemplateInfo
impl RefUnwindSafe for TemplateInfo
impl Send for TemplateInfo
impl Sync for TemplateInfo
impl Unpin for TemplateInfo
impl UnwindSafe for TemplateInfo
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)