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 a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.