Struct relay_event_schema::protocol::TemplateInfo
source · pub struct TemplateInfo {
pub filename: Annotated<String>,
pub abs_path: Annotated<String>,
pub lineno: Annotated<u64>,
pub colno: Annotated<u64>,
pub pre_context: Annotated<Array<String>>,
pub context_line: Annotated<String>,
pub post_context: Annotated<Array<String>>,
pub other: Object<Value>,
}
Expand description
Template debug information.
Fields§
§filename: Annotated<String>
The file name (basename only).
abs_path: Annotated<String>
Absolute path to the file.
lineno: Annotated<u64>
Line number within the source file.
colno: Annotated<u64>
Column number within the source file.
pre_context: Annotated<Array<String>>
Source code leading up to the current line.
context_line: Annotated<String>
Source code of the current line.
post_context: Annotated<Array<String>>
Source code of the lines after the current line.
other: Object<Value>
Additional arbitrary fields for forwards compatibility.
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 Empty for TemplateInfo
impl Empty for TemplateInfo
source§impl FromValue for TemplateInfo
impl FromValue for TemplateInfo
source§fn from_value(__value: Annotated<Value>) -> Annotated<Self>
fn from_value(__value: Annotated<Value>) -> Annotated<Self>
Creates a meta structure from an annotated boxed value.
source§impl IntoValue for TemplateInfo
impl IntoValue for TemplateInfo
source§fn into_value(self) -> Value
fn into_value(self) -> Value
Boxes the meta structure back into a value.
source§fn serialize_payload<S>(
&self,
__serializer: S,
__behavior: SkipSerialization,
) -> Result<S::Ok, S::Error>where
Self: Sized,
S: Serializer,
fn serialize_payload<S>(
&self,
__serializer: S,
__behavior: SkipSerialization,
) -> Result<S::Ok, S::Error>where
Self: Sized,
S: Serializer,
Efficiently serializes the payload directly.
source§fn extract_child_meta(&self) -> MetaMapwhere
Self: Sized,
fn extract_child_meta(&self) -> MetaMapwhere
Self: Sized,
Extracts children meta map out of a value.
§fn extract_meta_tree(value: &Annotated<Self>) -> MetaTreewhere
Self: Sized,
fn extract_meta_tree(value: &Annotated<Self>) -> MetaTreewhere
Self: Sized,
Extracts the meta tree out of annotated value. Read more
source§impl PartialEq for TemplateInfo
impl PartialEq for TemplateInfo
source§impl ProcessValue for TemplateInfo
impl ProcessValue for TemplateInfo
source§fn value_type(&self) -> EnumSet<ValueType>
fn value_type(&self) -> EnumSet<ValueType>
Returns the type of the value.
source§fn process_value<P>(
&mut self,
__meta: &mut Meta,
__processor: &mut P,
__state: &ProcessingState<'_>,
) -> ProcessingResultwhere
P: Processor,
fn process_value<P>(
&mut self,
__meta: &mut Meta,
__processor: &mut P,
__state: &ProcessingState<'_>,
) -> ProcessingResultwhere
P: Processor,
Executes a processor on this value.
source§fn process_child_values<P>(
&mut self,
__processor: &mut P,
__state: &ProcessingState<'_>,
) -> ProcessingResultwhere
P: Processor,
fn process_child_values<P>(
&mut self,
__processor: &mut P,
__state: &ProcessingState<'_>,
) -> ProcessingResultwhere
P: Processor,
Recurses into children of this value.
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§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
)