Skip to main content

LookupFieldPriority

This class defines the priority and matching criteria for lookup fields by associating a specific lookup type with an alias index. It is used to determine how lookups are resolved within a set of alias choices for a given field.

Attributes

AttributeTypeDescription
lookup_type[LookupType](../../../../lookup/key/lookuptype.md?sid=lookup_key_lookuptype)The type of lookups that will match this lookup
alias_indexusizeThe index of this alias within the AliasChoices for the field

Constructor

Signature

def LookupFieldPriority(
lookup_type: [LookupType](../../../../lookup/key/lookuptype.md?sid=lookup_key_lookuptype),
alias_index: usize
) - > null

Parameters

NameTypeDescription
lookup_type[LookupType](../../../../lookup/key/lookuptype.md?sid=lookup_key_lookuptype)The type of lookups that will match this lookup
alias_indexusizeThe index of this alias within the AliasChoices for the field

Methods


lookup_type()

def lookup_type() - > [LookupType](../../../../lookup/key/lookuptype.md?sid=lookup_key_lookuptype)

Returns the specific type of lookup mechanism that will be used to match this field priority.

Returns

TypeDescription
[LookupType](../../../../lookup/key/lookuptype.md?sid=lookup_key_lookuptype)The lookup strategy identifier used for matching logic

alias_index()

def alias_index() - > usize

Returns the positional index of the alias within the field's available choices.

Returns

TypeDescription
usizeThe zero-based index representing the specific alias choice for the field