Docs.rs
cmd-usage-0.7.12
cmd-usage 0.7.12
Docs.rs crate page
MIT
19 October 2026
Links
Repository
crates.io
Source
Owners
JeffreyJYZ
Dependencies
cmduse-core ^2
normal
lexopt ^0.3
normal
rusqlite ^0.40
normal
serde ^1
normal
serde_json ^1
normal
ureq ^2
normal
tempfile ^3
dev
Versions
34.76%
of the crate is documented
Go to latest version
Platform
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
Skip to main content
Module api
cmd_
usage
0.7.12
Module api
Module Items
Structs
Constants
Functions
In cmd_
usage::
ocuse
cmd_usage
::
ocuse
Module
api
Copy item path
Source
Structs
§
Meter
One of the account’s three meters: what share of the window’s limit is gone, and when it resets.
Usage
The account’s three meters. Field names are the endpoint’s, so
rolling
is the 5-hour window.
Constants
§
USAGE_
URL
The Go usage endpoint — the same source the console reads.
Functions
§
fetch
Fetch the account’s meters. One attempt: the caller always has a local fallback, and in watch mode a previous answer, so a retry ladder would only stall the frame it is drawn into.
key
The Go key:
OCUSE_API_KEY
, else
OPENCODE_API_KEY
, else the
opencode-go
entry of opencode’s own auth file — the same credential
/connect
stores.