LookupFieldInfo
This class provides metadata for a lookup operation, specifying the target field index to be populated and the priority level used to resolve conflicts between multiple potential matches.
Attributes
| Attribute | Type | Description |
|---|---|---|
| field_index | usize | The field which this lookup will populate. |
| lookup_priority | [LookupFieldPriority](lookupfieldpriority.md?sid=validators_shared_lookup_tree_lookupfieldpriority) | Information about whether this data should be preferred over other possible matches for the same field. |
Constructor
Signature
def LookupFieldInfo(
field_index: int,
lookup_priority: [LookupFieldPriority](lookupfieldpriority.md?sid=validators_shared_lookup_tree_lookupfieldpriority)
) - > [LookupFieldInfo](lookupfieldinfo.md?sid=validators_shared_lookup_tree_lookupfieldinfo)
Parameters
| Name | Type | Description |
|---|---|---|
| field_index | int | The index of the field which this lookup will populate. |
| lookup_priority | [LookupFieldPriority](lookupfieldpriority.md?sid=validators_shared_lookup_tree_lookupfieldpriority) | Information about whether this data should be preferred over other possible matches for the same field. |
Methods
field_index()
def field_index() - > usize
The field which this lookup will populate.
Returns
| Type | Description |
|---|---|
usize | The index of the target field within the data structure |
lookup_priority()
def lookup_priority() - > [LookupFieldPriority](lookupfieldpriority.md?sid=validators_shared_lookup_tree_lookupfieldpriority)
Information about whether this data should be preferred over other possible matches for the same field.
Returns
| Type | Description |
|---|---|
[LookupFieldPriority](lookupfieldpriority.md?sid=validators_shared_lookup_tree_lookupfieldpriority) | The priority level used to resolve conflicts when multiple lookups target the same field |