[][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_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_size: Option<String>

The size of the org chart nodes.

Trait Implementations

impl Part for OrgChartSpec[src]

impl Default for OrgChartSpec[src]

impl Clone for OrgChartSpec[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for OrgChartSpec[src]

impl Serialize for OrgChartSpec[src]

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

Auto Trait Implementations

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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

impl<T> Typeable for T where
    T: Any

fn get_type(&self) -> TypeId

Get the TypeId of this object.

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