pub struct EmbeddedObjectPosition {
pub sheet_id: Option<i64>,
pub overlay_position: Option<OverlayPosition>,
pub new_sheet: Option<bool>,
}Expand description
Where an EmbeddedChart or Slicer is anchored —
EmbeddedObjectPosition.
A three-way union on the wire: exactly one of overlay_position/
new_sheet is set on a chart this crate builds (a slicer can only ever
be overlay_position — the API has no newSheet/own-sheetId slicer
placement).
Fields§
§sheet_id: Option<i64>The chart occupies its own sheet, whose id this names. Read-back
only — this crate never sets it directly; use new_sheet to
request one.
overlay_position: Option<OverlayPosition>The object floats over an existing sheet, anchored to a cell.
new_sheet: Option<bool>Request a brand-new sheet to hold this chart alone. Write-only
(--new-sheet); the server never echoes true back — a
server-created chart sheet reads back with sheet_id set instead.
Trait Implementations§
Source§impl Clone for EmbeddedObjectPosition
impl Clone for EmbeddedObjectPosition
impl Copy for EmbeddedObjectPosition
Source§impl Debug for EmbeddedObjectPosition
impl Debug for EmbeddedObjectPosition
Source§impl Default for EmbeddedObjectPosition
impl Default for EmbeddedObjectPosition
Source§impl<'de> Deserialize<'de> for EmbeddedObjectPosition
impl<'de> Deserialize<'de> for EmbeddedObjectPosition
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
impl Eq for EmbeddedObjectPosition
Source§impl PartialEq for EmbeddedObjectPosition
impl PartialEq for EmbeddedObjectPosition
Source§impl Serialize for EmbeddedObjectPosition
impl Serialize for EmbeddedObjectPosition
impl StructuralPartialEq for EmbeddedObjectPosition
Auto Trait Implementations§
impl Freeze for EmbeddedObjectPosition
impl RefUnwindSafe for EmbeddedObjectPosition
impl Send for EmbeddedObjectPosition
impl Sync for EmbeddedObjectPosition
impl Unpin for EmbeddedObjectPosition
impl UnsafeUnpin for EmbeddedObjectPosition
impl UnwindSafe for EmbeddedObjectPosition
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ResetDiscriminant<T> for Twhere
T: Copy,
impl<T> ResetDiscriminant<T> for Twhere
T: Copy,
Source§fn discriminant(&self) -> T
fn discriminant(&self) -> T
Value based on which equality for the reset will be determined.