-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add support for parsing Firestore database references from string
This change adds a new enum `Ref` which represents a reference to either the database root, a single collection, or a single document in a Firestore database. It includes methods to extract the different types of references, check if one reference is a parent of another, and implements the `Display` trait for formatting. Additionally, it introduces error handling for invalid references and conversion to `tonic::Status`. The implementation also includes parsing logic from string to create a `Ref` instance.
- Loading branch information
Showing
14 changed files
with
748 additions
and
200 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.