#[non_exhaustive]pub enum WidgetWidth {
Full,
Half,
Unknown,
}Expand description
How much of the widget grid a widget asks for (#1257).
Both the Analytics page and the Dashboard’s pinned strip lay widgets
out two-up on a wide screen. Until this existed, the width was
decided purely by render: bar / timeline / op_timeline /
table always claimed the full row, everything else a single
column. That is a sensible default but a bad rule — an operator who
pins two bar widgets that answer the same question (app usage
alongside browsing, say) cannot put them side by side, and each
pushes the rest of the page further down.
Absent ⇒ keep the per-render default, so every existing manifest
renders exactly as before.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Full
Span the whole widget row.
Half
Take one column, so a sibling can share the row.
Unknown
#492 forward-compat catch-all (see AggregateScope::Unknown).
Rendered as if unset — a width hint is presentation-only, so an
unreadable variant must not drop the widget.
Trait Implementations§
Source§impl Clone for WidgetWidth
impl Clone for WidgetWidth
Source§fn clone(&self) -> WidgetWidth
fn clone(&self) -> WidgetWidth
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for WidgetWidth
Source§impl Debug for WidgetWidth
impl Debug for WidgetWidth
Source§impl<'de> Deserialize<'de> for WidgetWidth
impl<'de> Deserialize<'de> for WidgetWidth
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>,
impl Eq for WidgetWidth
Source§impl JsonSchema for WidgetWidth
impl JsonSchema for WidgetWidth
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl PartialEq for WidgetWidth
impl PartialEq for WidgetWidth
Source§impl Serialize for WidgetWidth
impl Serialize for WidgetWidth
impl StructuralPartialEq for WidgetWidth
Auto Trait Implementations§
impl Freeze for WidgetWidth
impl RefUnwindSafe for WidgetWidth
impl Send for WidgetWidth
impl Sync for WidgetWidth
impl Unpin for WidgetWidth
impl UnsafeUnpin for WidgetWidth
impl UnwindSafe for WidgetWidth
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.