pub struct GridCell {
pub v: String,
pub i: Option<String>,
pub t: CellType,
pub bold: bool,
pub italic: bool,
pub fill: Option<String>,
pub color: Option<String>,
pub align: Option<CellAlign>,
}Expand description
One grid cell. In JSON: null, a string, a number, a bool, or an object {"v": shown text, "i": input (a formula), "t": "s"|"n"|"b"|"e", "b": bold, "it": italic, "fill", "color", "align"}.
Fields§
§v: StringWhat the cell shows.
i: Option<String>What editing starts with and the formula bar shows (=SUM(B2:B9)), if not v.
t: CellType§bold: bool§italic: bool§fill: Option<String>Background: a theme role (accent, chart3, …) or #rrggbb.
color: Option<String>Text colour, the same way.
align: Option<CellAlign>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for GridCell
impl<'de> Deserialize<'de> for GridCell
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Leniently: what isn’t a cell is an empty one.
impl StructuralPartialEq for GridCell
Auto Trait Implementations§
impl Forget for GridCell
impl Freeze for GridCell
impl Move for GridCell
impl RefUnwindSafe for GridCell
impl Send for GridCell
impl Sync for GridCell
impl Unpin for GridCell
impl UnsafeUnpin for GridCell
impl UnwindSafe for GridCell
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