pub struct CellSnapshot {
pub pivot_table: Option<PivotTable>,
pub formatted_value: Option<String>,
pub user_entered_format: Option<CellFormatSnapshot>,
pub note: Option<String>,
pub data_validation: Option<DataValidationRule>,
}Expand description
One cell, read back only for the properties a caller’s fields mask
requested — CellSnapshot.
Distinct from PivotCellData (the write-side, value-incapable
type) precisely so this read-only type can carry
Self::formatted_value without ever creating a path for a literal
value to be written back through it.
PartialEq only, not Eq (issue #1878): Self::user_entered_format
carries Color’s f32 channels transitively, which has no meaningful
Eq — see that type’s doc comment. RowData and GridData drop
Eq for the same reason.
Fields§
§pivot_table: Option<PivotTable>The pivot table anchored at this cell, if any.
formatted_value: Option<String>The cell’s value as displayed in the UI — used only to describe an occupied anchor in a refusal/dry-run message, never parsed.
user_entered_format: Option<CellFormatSnapshot>The cell’s user-entered format — background, text formatting, number
format, horizontal alignment (issue #1878’s read-cell-format).
Deliberately userEnteredFormat, not effectiveFormat: what a
sort or fill physically moves is the user-entered format, while
effectiveFormat folds in conditional formatting, which follows the
range rather than the cell and would give false positives when
checking whether a verb moved formatting.
note: Option<String>A note attached to the cell (issue #1878).
data_validation: Option<DataValidationRule>A data validation rule on the cell (issue #1878).
Trait Implementations§
Source§impl Clone for CellSnapshot
impl Clone for CellSnapshot
Source§impl Debug for CellSnapshot
impl Debug for CellSnapshot
Source§impl Default for CellSnapshot
impl Default for CellSnapshot
Source§impl<'de> Deserialize<'de> for CellSnapshot
impl<'de> Deserialize<'de> for CellSnapshot
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>,
Source§impl PartialEq for CellSnapshot
impl PartialEq for CellSnapshot
Source§impl Serialize for CellSnapshot
impl Serialize for CellSnapshot
impl StructuralPartialEq for CellSnapshot
Auto Trait Implementations§
impl Freeze for CellSnapshot
impl RefUnwindSafe for CellSnapshot
impl Send for CellSnapshot
impl Sync for CellSnapshot
impl Unpin for CellSnapshot
impl UnsafeUnpin for CellSnapshot
impl UnwindSafe for CellSnapshot
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
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> ⓘ
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> ⓘ
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