pub struct CreateChart {Show 15 fields
pub sheet_idx: usize,
pub chart_id: String,
pub chart_type: String,
pub from_row: usize,
pub from_col: usize,
pub from_col_off: i64,
pub from_row_off: i64,
pub to_row: usize,
pub to_col: usize,
pub to_col_off: i64,
pub to_row_off: i64,
pub title: Option<String>,
pub categories_ref: Option<String>,
pub series: Vec<CreateChartSeries>,
pub block_source: Option<ChartBlockSource>,
}Expand description
Create a new chart anchored at from..to. chart_type is one of
col|bar|line|area|pie|doughnut|scatter|radar|bubble|stock|ofPie|barOfPie| surface|surface3d. chart_id must be workbook-unique
(the caller generates it; it also names the chart part). Series values are
read live from the referenced ranges, so no cached values are needed here.
Fields§
§sheet_idx: usize§chart_id: String§chart_type: String§from_row: usize§from_col: usize§from_col_off: i64§from_row_off: i64§to_row: usize§to_col: usize§to_col_off: i64§to_row_off: i64§title: Option<String>§categories_ref: Option<String>§series: Vec<CreateChartSeries>§block_source: Option<ChartBlockSource>Plot a block instead of fixed ranges. When set, series and
categories_ref are ignored — the block says where its fields are, and
the chart re-reads that on every render and every save, so it follows
the block as records are added or columns move.
Trait Implementations§
Source§impl Clone for CreateChart
impl Clone for CreateChart
Source§impl Debug for CreateChart
impl Debug for CreateChart
Source§impl<'de> Deserialize<'de> for CreateChart
impl<'de> Deserialize<'de> for CreateChart
Source§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
Source§impl From<CreateChart> for EditPayload
impl From<CreateChart> for EditPayload
Source§fn from(value: CreateChart) -> Self
fn from(value: CreateChart) -> Self
Converts to this type from the input type.
impl Payload for CreateChart
Source§impl Serialize for CreateChart
impl Serialize for CreateChart
Auto Trait Implementations§
impl Forget for CreateChart
impl Freeze for CreateChart
impl Move for CreateChart
impl RefUnwindSafe for CreateChart
impl Send for CreateChart
impl Sync for CreateChart
impl Unpin for CreateChart
impl UnsafeUnpin for CreateChart
impl UnwindSafe for CreateChart
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
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 moreSource§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.