#[non_exhaustive]pub struct NotebookDistributionCellAttributes {
pub definition: DistributionWidgetDefinition,
pub graph_size: Option<NotebookGraphSize>,
pub split_by: Option<NotebookSplitBy>,
pub time: Option<Option<NotebookCellTime>>,
pub additional_properties: BTreeMap<String, Value>,
/* private fields */
}
Expand description
The attributes of a notebook distribution
cell.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.definition: DistributionWidgetDefinition
The Distribution visualization is another way of showing metrics aggregated across one or several tags, such as hosts. Unlike the heat map, a distribution graph’s x-axis is quantity rather than time.
graph_size: Option<NotebookGraphSize>
The size of the graph.
split_by: Option<NotebookSplitBy>
Object describing how to split the graph to display multiple visualizations per request.
time: Option<Option<NotebookCellTime>>
Timeframe for the notebook cell. When ‘null’, the notebook global time is used.
additional_properties: BTreeMap<String, Value>
Implementations§
Source§impl NotebookDistributionCellAttributes
impl NotebookDistributionCellAttributes
pub fn new( definition: DistributionWidgetDefinition, ) -> NotebookDistributionCellAttributes
pub fn graph_size(self, value: NotebookGraphSize) -> Self
pub fn split_by(self, value: NotebookSplitBy) -> Self
pub fn time(self, value: Option<NotebookCellTime>) -> Self
pub fn additional_properties(self, value: BTreeMap<String, Value>) -> Self
Trait Implementations§
Source§impl Clone for NotebookDistributionCellAttributes
impl Clone for NotebookDistributionCellAttributes
Source§fn clone(&self) -> NotebookDistributionCellAttributes
fn clone(&self) -> NotebookDistributionCellAttributes
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<'de> Deserialize<'de> for NotebookDistributionCellAttributes
impl<'de> Deserialize<'de> for NotebookDistributionCellAttributes
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 PartialEq for NotebookDistributionCellAttributes
impl PartialEq for NotebookDistributionCellAttributes
Source§fn eq(&self, other: &NotebookDistributionCellAttributes) -> bool
fn eq(&self, other: &NotebookDistributionCellAttributes) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for NotebookDistributionCellAttributes
Auto Trait Implementations§
impl Freeze for NotebookDistributionCellAttributes
impl RefUnwindSafe for NotebookDistributionCellAttributes
impl Send for NotebookDistributionCellAttributes
impl Sync for NotebookDistributionCellAttributes
impl Unpin for NotebookDistributionCellAttributes
impl UnwindSafe for NotebookDistributionCellAttributes
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