pub struct ChartParams {
pub chart_kind: Option<String>,
pub chart_series: Option<String>,
pub renderer: Option<String>,
}Expand description
Chart-specific query parameters shared across report chart handlers.
chart_kind maps to rpc::chart::kind_or_default; chart_series is a
report-specific toggle (e.g. Activity: show Net or not) parsed in
each handler. renderer picks between server-side SVG (default)
and client-side canvas.
Fields§
§chart_kind: Option<String>§chart_series: Option<String>§renderer: Option<String>Implementations§
Source§impl ChartParams
impl ChartParams
Sourcepub fn chart_kind_str(&self) -> String
pub fn chart_kind_str(&self) -> String
Normalise the chart kind to its canonical lowercase name so
the template can round-trip it into URLs and <select>
values.
Sourcepub fn renderer_str(&self) -> String
pub fn renderer_str(&self) -> String
Canonicalise the renderer choice. Accepts svg (default) and
canvas; anything else normalises to svg.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ChartParams
impl RefUnwindSafe for ChartParams
impl Send for ChartParams
impl Sync for ChartParams
impl Unpin for ChartParams
impl UnsafeUnpin for ChartParams
impl UnwindSafe for ChartParams
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more