pub struct DashboardHints {
pub layout: LayoutMode,
pub refreshable: bool,
pub refresh_interval_seconds: Option<u32>,
pub drill_down_enabled: bool,
}Fields§
§layout: LayoutMode§refreshable: bool§refresh_interval_seconds: Option<u32>§drill_down_enabled: boolImplementations§
Source§impl DashboardHints
impl DashboardHints
pub fn new() -> Self
pub const fn with_refreshable(self, refreshable: bool) -> Self
pub const fn with_refresh_interval(self, seconds: u32) -> Self
pub const fn with_drill_down(self, enabled: bool) -> Self
pub const fn with_layout(self, layout: LayoutMode) -> Self
pub fn generate_schema(&self) -> JsonValue
Trait Implementations§
Source§impl Clone for DashboardHints
impl Clone for DashboardHints
Source§fn clone(&self) -> DashboardHints
fn clone(&self) -> DashboardHints
Returns a duplicate of the value. Read more
1.0.0 · 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 DashboardHints
impl Debug for DashboardHints
Source§impl Default for DashboardHints
impl Default for DashboardHints
Source§fn default() -> DashboardHints
fn default() -> DashboardHints
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DashboardHints
impl<'de> Deserialize<'de> for DashboardHints
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 DashboardHints
impl JsonSchema for DashboardHints
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 moreSource§impl Serialize for DashboardHints
impl Serialize for DashboardHints
impl Copy for DashboardHints
Auto Trait Implementations§
impl Freeze for DashboardHints
impl RefUnwindSafe for DashboardHints
impl Send for DashboardHints
impl Sync for DashboardHints
impl Unpin for DashboardHints
impl UnwindSafe for DashboardHints
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