pub struct LogicalLocation {
    pub decorated_name: Option<String>,
    pub fully_qualified_name: Option<String>,
    pub index: Option<i64>,
    pub kind: Option<String>,
    pub name: Option<String>,
    pub parent_index: Option<i64>,
    pub properties: Option<PropertyBag>,
}
Expand description

A logical location of a construct that produced a result.

Fields

decorated_name: Option<String>

The machine-readable name for the logical location, such as a mangled function name provided by a C++ compiler that encodes calling convention, return type and other details along with the function name.

fully_qualified_name: Option<String>

The human-readable fully qualified name of the logical location.

index: Option<i64>

The index within the logical locations array.

kind: Option<String>

The type of construct this logical location component refers to. Should be one of ‘function’, ‘member’, ‘module’, ‘namespace’, ‘parameter’, ‘resource’, ‘returnType’, ‘type’, ‘variable’, ‘object’, ‘array’, ‘property’, ‘value’, ‘element’, ‘text’, ‘attribute’, ‘comment’, ‘declaration’, ‘dtd’ or ‘processingInstruction’, if any of those accurately describe the construct.

name: Option<String>

Identifies the construct in which the result occurred. For example, this property might contain the name of a class or a method.

parent_index: Option<i64>

Identifies the index of the immediate parent of the construct in which the result was detected. For example, this property might point to a logical location that represents the namespace that holds a type.

properties: Option<PropertyBag>

Key/value pairs that provide additional information about the logical location.

Trait Implementations

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more