pub struct AnalyticsPlacement {
pub tab: String,
pub width: Option<WidgetWidth>,
}Expand description
The placement.analytics block — see Placement::analytics.
Deserialized from a bare string as well as a map, so
analytics: app-usage and analytics: { tab: app-usage, width: half }
both work. Serialized back as a bare string whenever no width is set,
which keeps the stored resource JSON in its terse form for every
widget that doesn’t ask for a width — i.e. almost all of them.
Fields§
§tab: StringTab this widget groups under. Widgets from every job/view are collected and grouped by this label, so the same string across sources builds one multi-source dashboard.
width: Option<WidgetWidth>How much of the Analytics row this widget takes (#1257). Absent ⇒
the per-render default.
Trait Implementations§
Source§impl Clone for AnalyticsPlacement
impl Clone for AnalyticsPlacement
Source§fn clone(&self) -> AnalyticsPlacement
fn clone(&self) -> AnalyticsPlacement
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AnalyticsPlacement
impl Debug for AnalyticsPlacement
Source§impl<'de> Deserialize<'de> for AnalyticsPlacement
impl<'de> Deserialize<'de> for AnalyticsPlacement
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 JsonSchema for AnalyticsPlacement
impl JsonSchema for AnalyticsPlacement
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for AnalyticsPlacement
impl RefUnwindSafe for AnalyticsPlacement
impl Send for AnalyticsPlacement
impl Sync for AnalyticsPlacement
impl Unpin for AnalyticsPlacement
impl UnsafeUnpin for AnalyticsPlacement
impl UnwindSafe for AnalyticsPlacement
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