Skip to main content

EmbeddedObjectVerb

Enum EmbeddedObjectVerb 

Source
pub enum EmbeddedObjectVerb {
    AddChart {
Show 18 fields chart_type: String, domain: String, series: Vec<String>, sheet: Option<String>, title: Option<String>, subtitle: Option<String>, legend: Option<String>, stacked: Option<String>, header_count: Option<i64>, horizontal_axis_title: Option<String>, vertical_axis_title: Option<String>, pie_hole: Option<f64>, anchor: Option<String>, offset_x: Option<i64>, offset_y: Option<i64>, width: Option<i64>, height: Option<i64>, new_sheet: bool,
}, UpdateChart {
Show 13 fields chart_id: i64, chart_type: Option<String>, domain: Option<String>, series: Vec<String>, sheet: Option<String>, title: Option<String>, subtitle: Option<String>, legend: Option<String>, stacked: Option<String>, header_count: Option<i64>, horizontal_axis_title: Option<String>, vertical_axis_title: Option<String>, pie_hole: Option<f64>,
}, DeleteChart { chart_id: i64, }, AddSlicer { sheet: Option<String>, range: String, column: i64, hide_values: Vec<String>, title: Option<String>, apply_to_pivot_tables: Option<bool>, anchor: String, offset_x: Option<i64>, offset_y: Option<i64>, width: Option<i64>, height: Option<i64>, }, UpdateSlicer { slicer_id: i64, sheet: Option<String>, range: Option<String>, column: Option<i64>, hide_values: Vec<String>, clear_criteria: bool, title: Option<String>, apply_to_pivot_tables: Option<bool>, }, DeleteSlicer { slicer_id: i64, }, MoveChart { chart_id: i64, sheet: Option<String>, anchor: Option<String>, offset_x: Option<i64>, offset_y: Option<i64>, width: Option<i64>, height: Option<i64>, new_sheet: bool, }, MoveSlicer { slicer_id: i64, sheet: Option<String>, anchor: Option<String>, offset_x: Option<i64>, offset_y: Option<i64>, width: Option<i64>, height: Option<i64>, }, UpdateChartBorder { chart_id: i64, color: Option<String>, clear: bool, }, }
Expand description

Which mutation to perform.

Variants§

§

AddChart

Add a chart.

Fields

§chart_type: String

column/bar/line/area/scatter/pie.

§domain: String

The domain (category/x-axis) range.

§series: Vec<String>

The data series ranges — exactly one for a pie chart, one or more for a basic chart.

§sheet: Option<String>

Sheet title, supplying the prefix for domain/series/ anchor when they don’t carry their own.

§title: Option<String>

The chart’s title.

§subtitle: Option<String>

The chart’s subtitle.

§legend: Option<String>

bottom/top/left/right/none.

§stacked: Option<String>

none/stacked/percent — basic charts only.

§header_count: Option<i64>

Leading rows/columns of the source range that are headers — basic charts only.

§horizontal_axis_title: Option<String>

The horizontal (BOTTOM_AXIS) axis title — basic charts only.

§vertical_axis_title: Option<String>

The vertical (LEFT_AXIS) axis title — basic charts only.

§pie_hole: Option<f64>

0.0-1.0 center-hole radius — pie charts only.

§anchor: Option<String>

The anchor cell, when not --new-sheet.

§offset_x: Option<i64>

Additional horizontal offset from the anchor cell, in pixels.

§offset_y: Option<i64>

Additional vertical offset from the anchor cell, in pixels.

§width: Option<i64>

The chart’s width in pixels.

§height: Option<i64>

The chart’s height in pixels.

§new_sheet: bool

Put the chart on a brand-new sheet of its own, instead of anchoring it to an existing one. Mutually exclusive with anchor/offset_x/offset_y/width/height.

§

UpdateChart

Replace an existing chart’s spec.

Fields

§chart_id: i64

Which chart to update, discovered via list-charts.

§chart_type: Option<String>

Change the chart’s type, when set. Refused if it would switch between a basic chart and a pie chart.

§domain: Option<String>

Replace the domain range, when set (requires series too).

§series: Vec<String>

Replace every series wholesale, when non-empty.

§sheet: Option<String>

Sheet title, supplying the prefix for domain/series when they don’t carry their own.

§title: Option<String>

Change the title, when set.

§subtitle: Option<String>

Change the subtitle, when set.

§legend: Option<String>

Change the legend position, when set.

§stacked: Option<String>

Change the stacking mode, when set — basic charts only.

§header_count: Option<i64>

Change the header row/column count, when set — basic charts only.

§horizontal_axis_title: Option<String>

Change the horizontal axis title, when set — basic charts only.

§vertical_axis_title: Option<String>

Change the vertical axis title, when set — basic charts only.

§pie_hole: Option<f64>

Change the pie-hole radius, when set — pie charts only.

§

DeleteChart

Remove a chart.

Fields

§chart_id: i64

Which chart to remove, discovered via list-charts.

§

AddSlicer

Add a slicer.

Fields

§sheet: Option<String>

Sheet title, supplying the prefix for range/anchor when they don’t carry their own.

§range: String

The range the slicer filters.

§column: i64

The absolute 0-based sheet column (0 = column A) the filter criteria apply to — not an offset within range. Must fall inside range’s columns.

§hide_values: Vec<String>

Values to hide in column.

§title: Option<String>

A human-readable name for the slicer.

§apply_to_pivot_tables: Option<bool>

Whether the slicer also filters pivot tables built from range.

§anchor: String

The anchor cell.

§offset_x: Option<i64>

Additional horizontal offset from the anchor cell, in pixels.

§offset_y: Option<i64>

Additional vertical offset from the anchor cell, in pixels.

§width: Option<i64>

The slicer’s width in pixels.

§height: Option<i64>

The slicer’s height in pixels.

§

UpdateSlicer

Change an existing slicer’s range, filter column/criteria, title, or pivot-table linkage.

Fields

§slicer_id: i64

Which slicer to change, discovered via list-slicers.

§sheet: Option<String>

Sheet title, supplying the prefix for range when it doesn’t carry its own.

§range: Option<String>

Replace the filtered range, when set.

§column: Option<i64>

Replace the filtered column, when set — an absolute 0-based sheet column (0 = column A), which must fall inside the slicer’s (new or existing) range.

§hide_values: Vec<String>

Replace the hidden-value criteria, when non-empty.

§clear_criteria: bool

Reset the filter criteria to empty.

§title: Option<String>

Change the title, when set.

§apply_to_pivot_tables: Option<bool>

Change the pivot-table linkage, when set.

§

DeleteSlicer

Remove a slicer.

Fields

§slicer_id: i64

Which slicer to remove, discovered via list-slicers.

§

MoveChart

Move and/or resize an existing chart (issue #1837).

Fields

§chart_id: i64

Which chart to move, discovered via list-charts.

§sheet: Option<String>

Sheet title, supplying the prefix for anchor when it doesn’t carry its own.

§anchor: Option<String>

The new anchor cell, when the chart stays (or becomes) an overlay. Required for a chart on its own sheet, which has no existing anchor to carry forward.

§offset_x: Option<i64>

Additional horizontal offset from the anchor cell, in pixels.

§offset_y: Option<i64>

Additional vertical offset from the anchor cell, in pixels.

§width: Option<i64>

The chart’s new width in pixels.

§height: Option<i64>

The chart’s new height in pixels.

§new_sheet: bool

Move the chart onto a brand-new sheet of its own. Mutually exclusive with every other field but chart_id.

§

MoveSlicer

Move and/or resize an existing slicer (issue #1837). No own-sheet placement — a slicer can only ever be an overlay.

Fields

§slicer_id: i64

Which slicer to move, discovered via list-slicers.

§sheet: Option<String>

Sheet title, supplying the prefix for anchor when it doesn’t carry its own.

§anchor: Option<String>

The new anchor cell, when set.

§offset_x: Option<i64>

Additional horizontal offset from the anchor cell, in pixels.

§offset_y: Option<i64>

Additional vertical offset from the anchor cell, in pixels.

§width: Option<i64>

The slicer’s new width in pixels.

§height: Option<i64>

The slicer’s new height in pixels.

§

UpdateChartBorder

Set or clear a chart’s border colour (issue #1837).

Fields

§chart_id: i64

Which chart to update, discovered via list-charts.

§color: Option<String>

The new border colour, as #RRGGBB. Mutually exclusive with clear.

§clear: bool

Remove the chart’s border entirely. Mutually exclusive with color.

Trait Implementations§

Source§

impl Clone for EmbeddedObjectVerb

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for EmbeddedObjectVerb

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for EmbeddedObjectVerb

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for EmbeddedObjectVerb

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DynClone for T
where T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> FromRef<T> for T
where T: Clone,

Source§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

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

fn in_current_span(self) -> Instrumented<Self> ⓘ

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

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

Converts 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
Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more