LookupPath
This class represents a structured path used for lookups, requiring an initial string key followed by an optional sequence of additional path items. It provides a mechanism to encode and manage hierarchical identifiers where the root must be a string-based key.
Attributes
| Attribute | Type | Description |
|---|---|---|
| first_item | [PathItemString](pathitemstring.md?sid=lookup_key_pathitemstring) | The initial string key that serves as the mandatory starting point for all lookup paths. |
| rest | Vec< PathItem > | A collection of additional path items used to resolve nested or complex lookups beyond the initial key. |
Constructor
Signature
def LookupPath(
first_item: [PathItemString](pathitemstring.md?sid=lookup_key_pathitemstring),
rest: Vec< PathItem >
) - > null
Parameters
| Name | Type | Description |
|---|---|---|
| first_item | [PathItemString](pathitemstring.md?sid=lookup_key_pathitemstring) | The initial string key that all paths must start with. |
| rest | Vec< PathItem > | A vector containing any additional items in the lookup path. |
Methods
first_item()
def first_item() - > [PathItemString](pathitemstring.md?sid=lookup_key_pathitemstring)
Returns the initial string key that all lookup paths must start with.
Returns
| Type | Description |
|---|---|
[PathItemString](pathitemstring.md?sid=lookup_key_pathitemstring) | The mandatory first segment of the path represented as a string key |
rest()
def rest() - > Vec< PathItem >
Provides the remaining segments of the lookup path following the initial key.
Returns
| Type | Description |
|---|---|
Vec< PathItem > | A collection of additional path items that constitute the full lookup sequence |