Enum spreadsheet_ods::Value [−][src]
pub enum Value {
Empty,
Boolean(bool),
Number(f64),
Percentage(f64),
Currency(f64, [u8; 3]),
Text(String),
TextXml(Vec<TextTag>),
DateTime(NaiveDateTime),
TimeDuration(Duration),
}Expand description
Content-Values
Variants
Tuple Fields of Boolean
0: boolTuple Fields of Number
0: f64Tuple Fields of Percentage
0: f64Tuple Fields of Text
0: StringTuple Fields of DateTime
Tuple Fields of TimeDuration
0: DurationImplementations
Return the plan ValueType for this value.
Return the bool if the value is a Boolean. Default otherwise.
Return the content as i32 if the value is a number, percentage or currency. Default otherwise.
Return the content as i32 if the value is a number, percentage or currency.
Return the content as u32 if the value is a number, percentage or currency. Default otherwise.
Return the content as u32 if the value is a number, percentage or currency.
Return the content as decimal if the value is a number, percentage or currency. Default otherwise.
Return the content as decimal if the value is a number, percentage or currency. Default otherwise.
Return the content as f64 if the value is a number, percentage or currency. Default otherwise.
Return the content as f64 if the value is a number, percentage or currency.
Return the content as str if the value is text.
Return the content as str if the value is text.
Return the content as Duration if the value is a TimeDuration. Default otherwise.
Return the content as Duration if the value is a TimeDuration. Default otherwise.
Return the content as NaiveDateTime if the value is a DateTime. Default otherwise.
Return the content as an optional NaiveDateTime if the value is a DateTime.
Return the content as NaiveDate if the value is a DateTime. Default otherwise.
Return the content as an optional NaiveDateTime if the value is a DateTime.
Create a currency value.
Create a percentage value.
Trait Implementations
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for Value
impl UnwindSafe for Value
Blanket Implementations
Mutably borrows from an owned value. Read more