pub struct OrgChartSpec {
pub labels: Option<ChartData>,
pub node_color: Option<Color>,
pub node_color_style: Option<ColorStyle>,
pub node_size: Option<String>,
pub parent_labels: Option<ChartData>,
pub selected_node_color: Option<Color>,
pub selected_node_color_style: Option<ColorStyle>,
pub tooltips: Option<ChartData>,
}
Expand description
An org chart. Org charts require a unique set of labels in labels and may optionally include parent_labels and tooltips. parent_labels contain, for each node, the label identifying the parent node. tooltips contain, for each node, an optional tooltip. For example, to describe an OrgChart with Alice as the CEO, Bob as the President (reporting to Alice) and Cathy as VP of Sales (also reporting to Alice), have labels contain “Alice”, “Bob”, “Cathy”, parent_labels contain “”, “Alice”, “Alice” and tooltips contain “CEO”, “President”, “VP Sales”.
This type is not used in any activity, and only used as part of another schema.
Fields§
§labels: Option<ChartData>
The data containing the labels for all the nodes in the chart. Labels must be unique.
node_color: Option<Color>
The color of the org chart nodes. Deprecated: Use node_color_style.
node_color_style: Option<ColorStyle>
The color of the org chart nodes. If node_color is also set, this field takes precedence.
node_size: Option<String>
The size of the org chart nodes.
parent_labels: Option<ChartData>
The data containing the label of the parent for the corresponding node. A blank value indicates that the node has no parent and is a top-level node. This field is optional.
selected_node_color: Option<Color>
The color of the selected org chart nodes. Deprecated: Use selected_node_color_style.
selected_node_color_style: Option<ColorStyle>
The color of the selected org chart nodes. If selected_node_color is also set, this field takes precedence.
tooltips: Option<ChartData>
The data containing the tooltip for the corresponding node. A blank value results in no tooltip being displayed for the node. This field is optional.
Trait Implementations§
Source§impl Clone for OrgChartSpec
impl Clone for OrgChartSpec
Source§fn clone(&self) -> OrgChartSpec
fn clone(&self) -> OrgChartSpec
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for OrgChartSpec
impl Debug for OrgChartSpec
Source§impl Default for OrgChartSpec
impl Default for OrgChartSpec
Source§fn default() -> OrgChartSpec
fn default() -> OrgChartSpec
Source§impl<'de> Deserialize<'de> for OrgChartSpec
impl<'de> Deserialize<'de> for OrgChartSpec
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>,
Source§impl Serialize for OrgChartSpec
impl Serialize for OrgChartSpec
impl Part for OrgChartSpec
Auto Trait Implementations§
impl Freeze for OrgChartSpec
impl RefUnwindSafe for OrgChartSpec
impl Send for OrgChartSpec
impl Sync for OrgChartSpec
impl Unpin for OrgChartSpec
impl UnwindSafe for OrgChartSpec
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> 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>
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>
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