pub struct Args {Show 26 fields
pub binary: Binary,
pub interval: Option<u64>,
pub once: bool,
pub watch: bool,
pub plain: bool,
pub bar_width: Option<usize>,
pub bursts: Option<usize>,
pub help: bool,
pub config_set: Option<ConfigSet>,
pub subcmd: Option<SubCmd>,
pub last: Option<usize>,
pub hours: Option<usize>,
pub json: bool,
pub csv: bool,
pub local: bool,
pub gated: bool,
pub tz: Option<i64>,
pub dismiss_update: bool,
pub since: Option<String>,
pub db: Option<String>,
pub plan: Option<String>,
pub window: Option<String>,
pub period_start: Option<String>,
pub infer_anniversary: bool,
pub rows: Option<usize>,
pub no_api: bool,
}Fields§
§binary: BinaryThe binary this argv was parsed for (gates --local/--gated vs the
ocuse-only flags).
interval: Option<u64>§once: bool§watch: boolExplicit -W/watch seen (as opposed to the implicit default mode).
plain: bool§bar_width: Option<usize>§bursts: Option<usize>§help: bool§config_set: Option<ConfigSet>§subcmd: Option<SubCmd>§last: Option<usize>§hours: Option<usize>§json: bool§csv: bool§local: bool§gated: bool§tz: Option<i64>§dismiss_update: bool§since: Option<String>ISO-8601 start of the window, for model/session.
db: Option<String>opencode store path (--db).
plan: Option<String>Go plan to measure against (--plan).
window: Option<String>Report window (--window): month, all, or <n>d.
period_start: Option<String>Pinned period start (--period-start), YYYY-MM-DD.
infer_anniversary: boolInfer the period start from the first Go request (--infer-anniversary).
rows: Option<usize>Table rows to print (--rows).
no_api: boolSkip OpenCode Go’s usage endpoint (--no-api): stay local-only.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Args
impl RefUnwindSafe for Args
impl Send for Args
impl Sync for Args
impl Unpin for Args
impl UnsafeUnpin for Args
impl UnwindSafe for Args
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more