pub struct EmbeddedChart {
pub chart_id: Option<i64>,
pub spec: Option<ChartSpec>,
pub position: Option<EmbeddedObjectPosition>,
pub border: Option<EmbeddedObjectBorder>,
}Expand description
One chart embedded on a sheet — EmbeddedChart.
Fields§
§chart_id: Option<i64>The server-assigned stable id. Absent on an add-chart request this
crate is building; always present on one read back or on an
update-chart/delete-chart request.
spec: Option<ChartSpec>The chart’s content and styling.
position: Option<EmbeddedObjectPosition>Where the chart is anchored.
border: Option<EmbeddedObjectBorder>The chart’s border colour, if it has one. Read back for free once
requested — SPREADSHEET_FIELDS_WITH_EMBEDDED_OBJECTS already
requests sheets.charts wholesale — so update-chart-border’s
preview can report the colour about to be replaced (issue #1837).
Trait Implementations§
Source§impl Clone for EmbeddedChart
impl Clone for EmbeddedChart
Source§impl Debug for EmbeddedChart
impl Debug for EmbeddedChart
Source§impl Default for EmbeddedChart
impl Default for EmbeddedChart
Source§impl<'de> Deserialize<'de> for EmbeddedChart
impl<'de> Deserialize<'de> for EmbeddedChart
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 PartialEq for EmbeddedChart
impl PartialEq for EmbeddedChart
Source§impl Serialize for EmbeddedChart
impl Serialize for EmbeddedChart
impl StructuralPartialEq for EmbeddedChart
Auto Trait Implementations§
impl Freeze for EmbeddedChart
impl RefUnwindSafe for EmbeddedChart
impl Send for EmbeddedChart
impl Sync for EmbeddedChart
impl Unpin for EmbeddedChart
impl UnsafeUnpin for EmbeddedChart
impl UnwindSafe for EmbeddedChart
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 more