1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
use std::{
fmt::{Debug, Display, Formatter},
};
use serde::{Deserialize, Serialize};
use xcell_errors::for_3rd::DataType;
pub use crate::{
array::{ArrayDescription, ArrayKind},
decimal::{DecimalDescription, DecimalKind},
integer::{IntegerDescription, IntegerKind},
value::{
boolean::BooleanDescription, color::ColorDescription, custom::CustomDescription, enumerate::EnumerateDescription,
string::StringDescription,
},
vector::VectorDescription,
};
pub use crate::value::time::TimeDescription;
mod parser;
#[derive(Clone, Serialize, Deserialize)]
pub enum XCellTyped {
Boolean(Box<BooleanDescription>),
Integer(Box<IntegerDescription>),
Decimal(Box<DecimalDescription>),
String(Box<StringDescription>),
Time(Box<TimeDescription>),
Color(Box<ColorDescription>),
Enumerate(Box<EnumerateDescription>),
Array(Box<ArrayDescription>),
Vector(Box<VectorDescription>),
Custom(Box<CustomDescription>),
}
mod display;
impl XCellTyped {
pub fn parse(field: &str, ty: &DataType) -> Self {
todo!()
}
}