Docs.rs
promql-parser-0.6.0
promql-parser 0.6.0
Permalink
Docs.rs crate page
Apache-2.0
Links
Repository
crates.io
Source
Owners
yuanbohan
github:greptimeteam:developer
Dependencies
cfgrammar ^0.13.5
normal
chrono ^0.4.38
normal
lazy_static ^1.4.0
normal
lrlex ^0.13.5
normal
lrpar ^0.13.5
normal
regex ^1
normal
serde ^1
normal
optional
serde_json ^1
normal
optional
unescaper ^0.1
normal
cfgrammar ^0.13.5
build
lrlex ^0.13.5
build
lrpar ^0.13.5
build
Versions
22.71%
of the crate is documented
Platform
i686-pc-windows-msvc
i686-unknown-linux-gnu
x86_64-apple-darwin
x86_64-pc-windows-msvc
x86_64-unknown-linux-gnu
Feature flags
docs.rs
About docs.rs
Badges
Builds
Metadata
Shorthand URLs
Download
Rustdoc JSON
Build queue
Privacy policy
Rust
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
promql_
parser
0.6.0
Module duration
Module Items
Constants
Functions
In promql_
parser::
util
promql_parser
::
util
Module
duration
Copy item path
Source
Constants
§
DAY_
DURATION
HOUR_
DURATION
MILLI_
DURATION
MINUTE_
DURATION
SECOND_
DURATION
WEEK_
DURATION
YEAR_
DURATION
Functions
§
display_
duration
display Duration in Prometheus format
parse_
duration
parses a string into a Duration, assuming that a year always has 365d, a week always has 7d, and a day always has 24h.