pub struct Settings<'a> {
pub db_path: &'a str,
pub days: i64,
pub tz_secs: i64,
pub colour: bool,
pub plan: &'a str,
pub period_start: Option<i64>,
pub account: Option<&'a Usage>,
pub account_error: Option<&'a str>,
}Expand description
What every tool call needs, resolved once by the caller — the per-run
settings plus the account meters it already fetched. Bundled rather than
passed positionally so adding a source (as account did) does not grow every
signature in the file.
Fields§
§db_path: &'a str§days: i64§tz_secs: i64§colour: bool§plan: &'a str§period_start: Option<i64>§account: Option<&'a Usage>§account_error: Option<&'a str>Why the account’s meters are missing, when the CLI resolved it — the same
line the dashboard prints, so a usage call through MCP explains itself
too instead of showing bare local estimates.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Settings<'a>
impl<'a> RefUnwindSafe for Settings<'a>
impl<'a> Send for Settings<'a>
impl<'a> Sync for Settings<'a>
impl<'a> Unpin for Settings<'a>
impl<'a> UnsafeUnpin for Settings<'a>
impl<'a> UnwindSafe for Settings<'a>
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