pub struct UsageParams {
pub tool: Option<String>,
pub bucket: Option<String>,
pub window: Option<String>,
pub theme: Option<String>,
pub metric: Option<String>,
pub currency: Option<String>,
pub sel_bucket: Option<String>,
pub sel_project: Option<String>,
}Expand description
Raw, optional query-string values. Unknown values fall back to defaults instead of failing the request, so a stale bookmark never 400s.
Fields§
§tool: Option<String>§bucket: Option<String>§window: Option<String>§theme: Option<String>Colour theme name (see /api/themes). Unknown names are ignored.
metric: Option<String>Chart metric: tokens (default) or cost.
currency: Option<String>Display currency code (EUR, GBP, …). Unknown codes are ignored.
sel_bucket: Option<String>Clicked chart bucket (a label such as 2026-09-22).
sel_project: Option<String>Clicked donut slice (a tool:project key).
Implementations§
Source§impl UsageParams
impl UsageParams
Trait Implementations§
Source§impl<'de> Deserialize<'de> for UsageParams
impl<'de> Deserialize<'de> for UsageParams
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl QueryParams for UsageParams
impl QueryParams for UsageParams
Source§type Output<'__cx> = Result<&'__cx UsageParams, RedirectError>
type Output<'__cx> = Result<&'__cx UsageParams, RedirectError>
The value produced for a request bound to lifetime
'cx. Read moreAuto Trait Implementations§
impl Freeze for UsageParams
impl RefUnwindSafe for UsageParams
impl Send for UsageParams
impl Sync for UsageParams
impl Unpin for UsageParams
impl UnsafeUnpin for UsageParams
impl UnwindSafe for UsageParams
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