pub struct TraceEvent {
pub phase: Phase,
pub depth: usize,
pub source: Option<String>,
pub position: String,
pub variables: Vec<TraceVariable>,
pub messages: Vec<String>,
}Expand description
One evaluation unit.
Fields§
§phase: Phase§depth: usize§source: Option<String>The map the event is in: its canonical URL.
position: StringWhere in the map, as a FHIRPath location: StructureMap.group[0].rule[2].target[1].
variables: Vec<TraceVariable>§messages: Vec<String>log (…) messages produced by this event.
Implementations§
Source§impl TraceEvent
impl TraceEvent
Sourcepub fn approximate_size(&self) -> usize
pub fn approximate_size(&self) -> usize
Roughly the size of the event as JSON, in bytes: enough to keep a trace within a budget.
Trait Implementations§
Source§impl Clone for TraceEvent
impl Clone for TraceEvent
Source§impl Debug for TraceEvent
impl Debug for TraceEvent
impl Eq for TraceEvent
Source§impl PartialEq for TraceEvent
impl PartialEq for TraceEvent
impl StructuralPartialEq for TraceEvent
Auto Trait Implementations§
impl Freeze for TraceEvent
impl RefUnwindSafe for TraceEvent
impl Send for TraceEvent
impl Sync for TraceEvent
impl Unpin for TraceEvent
impl UnsafeUnpin for TraceEvent
impl UnwindSafe for TraceEvent
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.