Skip to main content

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

AttributeTypeDescription
field_indexusizeThe 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

NameTypeDescription
field_indexintThe 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

TypeDescription
usizeThe 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

TypeDescription
[LookupFieldPriority](lookupfieldpriority.md?sid=validators_shared_lookup_tree_lookupfieldpriority)The priority level used to resolve conflicts when multiple lookups target the same field