Struct google_sheets4::api::OrgChartSpec [−][src]
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.
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.
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
Returns the “default value” for a type. Read more
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
Auto Trait Implementations
impl RefUnwindSafe for OrgChartSpec
impl Send for OrgChartSpec
impl Sync for OrgChartSpec
impl Unpin for OrgChartSpec
impl UnwindSafe for OrgChartSpec
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more