Provides an interface to specify a path to a key in a document that you can then call a function on to get the value at the specified key as a specific type. You obtain a DittoDocumentPath by subscripting a DittoDocument and you can then further subscript a DittoDocumentPath to further specify the key of the document that you want to get the value of.
A wrapper around the Rust document pointer.
The initial path into the DittoDocument. Given that all DittoDocuments are maps at the top level, initialPath should only ever be a string key into the top level map. Multiple path components are not supported via this constructor (i.e. "key" or "key.nextKey" are invalid). Further levels of paths should be added via repeated subscripting on the returned DittoDocumentPath (i.e. doc["key"] or doc["key"]["nextKey"]).
Used to specify an index in the array at the preceding key-path specified through the subscripting defined previously. You can subscript the return value further to access a further nested key in the document.