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
| Attribute | Type | Description |
|---|---|---|
| lookup_type | [LookupType](../../../../lookup/key/lookuptype.md?sid=lookup_key_lookuptype) | The type of lookups that will match this lookup |
| alias_index | usize | The 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
| Name | Type | Description |
|---|---|---|
| lookup_type | [LookupType](../../../../lookup/key/lookuptype.md?sid=lookup_key_lookuptype) | The type of lookups that will match this lookup |
| alias_index | usize | The 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
| Type | Description |
|---|---|
[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
| Type | Description |
|---|---|
usize | The zero-based index representing the specific alias choice for the field |