pub struct Settings<'a> {
pub db_path: &'a str,
pub days: i64,
pub tz_secs: i64,
pub colour: bool,
pub tier: &'a str,
pub period_start: Option<i64>,
pub account_month: Option<(i64, i64)>,
pub account: Option<&'a Usage>,
pub account_error: Option<&'a str>,
}Expand description
Everything a tool call needs, resolved once by the caller.
Fields§
§db_path: &'a str§days: i64§tz_secs: i64§colour: bool§tier: &'a str§period_start: Option<i64>§account_month: Option<(i64, i64)>The control plane’s billing month (start, reset), already resolved by the
caller; None when it did not answer or the period was pinned.
account: Option<&'a Usage>§account_error: Option<&'a str>Why the meters are missing — the dashboard’s own line, so an MCP usage
call explains itself instead of showing a bare local estimate.
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