pub struct FlowtraceFact {
pub kind: String,
pub file: String,
pub line: u32,
pub class: Option<String>,
pub message: Option<String>,
pub fqn: Option<String>,
}Expand description
One flow-tracer fact from facts.json.
Shape varies by kind ("type" on the wire); every field the eight
registered fact kinds can carry is kept optional here rather than
modeled as one enum per kind, so a fact kind this reader does not
specifically grade against still parses rather than aborting the whole
document.
Fields§
§kind: StringThe fact’s kind ("publish", "consume", "route",
"di_binding", "message_class", "iface_impl", "ctor_field",
"method_span").
file: StringThe repository-relative source file.
line: u32The one-based source line the tracer recorded.
class: Option<String>The declaring class, when this fact kind carries one.
message: Option<String>The message/event type name, for publish/consume/message_class
facts.
fqn: Option<String>The fully qualified name the tracer resolved, when it carries one.
Trait Implementations§
Source§impl Clone for FlowtraceFact
impl Clone for FlowtraceFact
Source§impl Debug for FlowtraceFact
impl Debug for FlowtraceFact
Source§impl<'de> Deserialize<'de> for FlowtraceFact
impl<'de> Deserialize<'de> for FlowtraceFact
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
Auto Trait Implementations§
impl Freeze for FlowtraceFact
impl RefUnwindSafe for FlowtraceFact
impl Send for FlowtraceFact
impl Sync for FlowtraceFact
impl Unpin for FlowtraceFact
impl UnsafeUnpin for FlowtraceFact
impl UnwindSafe for FlowtraceFact
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more