[][src]Struct google_sheets4::OrgChartSpec

pub struct OrgChartSpec {
    pub tooltips: Option<ChartData>,
    pub parent_labels: Option<ChartData>,
    pub node_color: Option<Color>,
    pub labels: Option<ChartData>,
    pub selected_node_color: Option<Color>,
    pub node_color_style: Option<ColorStyle>,
    pub selected_node_color_style: Option<ColorStyle>,
    pub node_size: Option<String>,
}

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

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.

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.

node_color: Option<Color>

The color of the org chart nodes.

labels: Option<ChartData>

The data containing the labels for all the nodes in the chart. Labels must be unique.

selected_node_color: Option<Color>

The color of the selected 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.

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.

node_size: Option<String>

The size of the org chart nodes.

Trait Implementations

impl Clone for OrgChartSpec[src]

impl Debug for OrgChartSpec[src]

impl Default for OrgChartSpec[src]

impl<'de> Deserialize<'de> for OrgChartSpec[src]

impl Part for OrgChartSpec[src]

impl Serialize for OrgChartSpec[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Typeable for T where
    T: Any