Skip to main content

Args

Struct Args 

Source
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: Binary

The binary this argv was parsed for (gates --local/--gated vs the ocuse-only flags).

§interval: Option<u64>§once: bool§watch: bool

Explicit -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: bool

Infer the period start from the first Go request (--infer-anniversary).

§rows: Option<usize>

Table rows to print (--rows).

§no_api: bool

Skip OpenCode Go’s usage endpoint (--no-api): stay local-only.

Trait Implementations§

Source§

impl Debug for Args

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Args

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.