pub enum CellValue {
Number(f64),
Text(String),
Bool(bool),
Empty,
Error(ExcelError),
}Expand description
An owned cell value at the eval boundary (D-04).
Variants§
Number(f64)
A numeric value (full precision retained; the evaluator sees a JSON number).
Text(String)
A text value.
Bool(bool)
A boolean value.
Empty
An empty cell (lowers to 0 for the evaluator — the empty-cell-as-0 rule).
Error(ExcelError)
An Excel error value — NEVER lowers into the evaluator; the semantics layer short-circuits propagation above it (D-04).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CellValue
impl<'de> Deserialize<'de> for CellValue
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 JsonSchema for CellValue
impl JsonSchema for CellValue
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl StructuralPartialEq for CellValue
Auto Trait Implementations§
impl Freeze for CellValue
impl RefUnwindSafe for CellValue
impl Send for CellValue
impl Sync for CellValue
impl Unpin for CellValue
impl UnsafeUnpin for CellValue
impl UnwindSafe for CellValue
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