Struct sentry::protocol::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, Global>,
pub context_line: Option<String>,
pub post_context: Vec<String, Global>,
}
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, Global>
The sources of the lines leading up to the current line.
context_line: Option<String>
The current line as source.
post_context: Vec<String, Global>
The sources of the lines after the current line.
Trait Implementations
sourceimpl Clone for TemplateInfo
impl Clone for TemplateInfo
sourcepub fn clone(&self) -> TemplateInfo
pub fn clone(&self) -> TemplateInfo
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for TemplateInfo
impl Debug for TemplateInfo
sourceimpl Default for TemplateInfo
impl Default for TemplateInfo
sourcepub fn default() -> TemplateInfo
pub fn default() -> TemplateInfo
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for TemplateInfo
impl<'de> Deserialize<'de> for TemplateInfo
sourcepub fn deserialize<__D>(
__deserializer: __D
) -> Result<TemplateInfo, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<TemplateInfo, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<TemplateInfo> for TemplateInfo
impl PartialEq<TemplateInfo> for TemplateInfo
sourcepub fn eq(&self, other: &TemplateInfo) -> bool
pub fn eq(&self, other: &TemplateInfo) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcepub fn ne(&self, other: &TemplateInfo) -> bool
pub fn ne(&self, other: &TemplateInfo) -> bool
This method tests for !=
.
sourceimpl Serialize for TemplateInfo
impl Serialize for TemplateInfo
sourcepub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for TemplateInfo
Auto Trait Implementations
impl RefUnwindSafe for TemplateInfo
impl Send for TemplateInfo
impl Sync for TemplateInfo
impl Unpin for TemplateInfo
impl UnwindSafe for TemplateInfo
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more