pub struct CellData {
pub value: Data,
pub style: Option<Style>,
}Expand description
A struct that combines cell value and style information
Fields§
§value: DataThe cell value
style: Option<Style>The cell style
Implementations§
Trait Implementations§
Source§impl DataType for CellData
An enum to represent all different data types that can appear as
a value in a worksheet cell
impl DataType for CellData
An enum to represent all different data types that can appear as a value in a worksheet cell
Source§fn is_rich_text(&self) -> bool
fn is_rich_text(&self) -> bool
Assess if datatype is rich text (string with formatting)
Source§fn is_duration_iso(&self) -> bool
fn is_duration_iso(&self) -> bool
Assess if datatype is an ISO8601 duration
Source§fn is_datetime(&self) -> bool
fn is_datetime(&self) -> bool
Assess if datatype is a datetime
Source§fn is_datetime_iso(&self) -> bool
fn is_datetime_iso(&self) -> bool
Assess if datatype is an ISO8601 datetime
Source§fn get_string(&self) -> Option<&str>
fn get_string(&self) -> Option<&str>
Try getting string value (plain string only, not rich text)
Source§fn get_rich_text(&self) -> Option<&RichText>
fn get_rich_text(&self) -> Option<&RichText>
Try getting rich text value
Source§fn get_datetime(&self) -> Option<ExcelDateTime>
fn get_datetime(&self) -> Option<ExcelDateTime>
Try getting datetime value
Source§fn get_datetime_iso(&self) -> Option<&str>
fn get_datetime_iso(&self) -> Option<&str>
Try getting datetime ISO8601 value
Source§fn get_duration_iso(&self) -> Option<&str>
fn get_duration_iso(&self) -> Option<&str>
Try getting duration ISO8601 value
Source§fn get_error(&self) -> Option<&CellErrorType>
fn get_error(&self) -> Option<&CellErrorType>
Try getting Error value
Source§fn as_string(&self) -> Option<String>
fn as_string(&self) -> Option<String>
Try converting data type into a string (includes rich text as plain text)
Source§fn as_date(&self) -> Option<NaiveDate>
fn as_date(&self) -> Option<NaiveDate>
Available on crate feature
chrono only.Try converting data type into a date
Source§fn as_time(&self) -> Option<NaiveTime>
fn as_time(&self) -> Option<NaiveTime>
Available on crate feature
chrono only.Try converting data type into a time
Source§fn as_duration(&self) -> Option<Duration>
fn as_duration(&self) -> Option<Duration>
Available on crate feature
chrono only.Try converting data type into a duration
Source§fn as_datetime(&self) -> Option<NaiveDateTime>
fn as_datetime(&self) -> Option<NaiveDateTime>
Available on crate feature
chrono only.impl CellType for CellData
impl StructuralPartialEq for CellData
Auto Trait Implementations§
impl Freeze for CellData
impl RefUnwindSafe for CellData
impl Send for CellData
impl Sync for CellData
impl Unpin for CellData
impl UnsafeUnpin for CellData
impl UnwindSafe for CellData
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