use-document-path 0.1.0

Document path primitives for RustUse NoSQL data modeling
Documentation
  • Coverage
  • 93.75%
    15 out of 16 items documented1 out of 13 items with examples
  • Size
  • Source code size: 8.19 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 624.55 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 2s Average build duration of successful builds.
  • all releases: 2s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • RustUse/use-nosql
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CloudBranch

use-document-path

Document path primitives for RustUse NoSQL-style data modeling.

Experimental

use-document-path is experimental while use-nosql remains below 0.3.0.

Example

use use_document_path::{DocumentPath, PathParseError};

let path = DocumentPath::try_new("profile.display_name")?;
let segments = path.segments()?;

assert_eq!(path.as_str(), "profile.display_name");
assert_eq!(segments.len(), 2);
# Ok::<(), PathParseError>(())

Scope

  • Dot-path strings such as profile.display_name.
  • Path segment and field selector labels.
  • Conservative path parsing errors.

Non-goals

  • JSON Pointer implementation.
  • JSON document parsing.
  • Database-specific path syntax.

License

Licensed under either Apache-2.0 or MIT.