Struct spreadsheet_ods::format::PartSecondsBuilder
source · pub struct PartSecondsBuilder<'vf, T: ValueFormatTrait> { /* private fields */ }Expand description
The number:seconds element specifies whether seconds are displayed as part of a date or time.
The number:seconds element is usable within the following elements:
- number:datestyle 16.27.10 and
- number:time-style 16.27.18.
The number:seconds element has the following attributes:
- number:decimal-places 19.343.3 and
- number:style 19.358.9.
The number:seconds element has no child elements.
Implementations§
source§impl<'vf, T: ValueFormatTrait> PartSecondsBuilder<'vf, T>
impl<'vf, T: ValueFormatTrait> PartSecondsBuilder<'vf, T>
sourcepub fn if_then<F>(self, test: bool, build: F) -> Selfwhere
F: Fn(Self) -> Self,
pub fn if_then<F>(self, test: bool, build: F) -> Selfwhere
F: Fn(Self) -> Self,
Only applies the builder if the test is true.
sourcepub fn decimal_places(self, decimal_places: u8) -> Self
pub fn decimal_places(self, decimal_places: u8) -> Self
If the number:decimal-places attribute is not specified, the number of decimal places specified by the default table cell style is used.
sourcepub fn long_style(self) -> Self
pub fn long_style(self) -> Self
The number:style attribute specifies whether the content of a time element is displayed in short or long format. The value of this attribute can be short or long. The meaning of these values depends on the value of the number:format-source 19.348 attribute that is attached to a date or time style.
sourcepub fn short_style(self) -> Self
pub fn short_style(self) -> Self
The number:style attribute specifies whether the content of a time element is displayed in short or long format. The value of this attribute can be short or long. The meaning of these values depends on the value of the number:format-source 19.348 attribute that is attached to a date or time style.
sourcepub fn style(self, style: FormatNumberStyle) -> Self
pub fn style(self, style: FormatNumberStyle) -> Self
The number:style attribute specifies whether the content of a time element is displayed in short or long format. The value of this attribute can be short or long. The meaning of these values depends on the value of the number:format-source 19.348 attribute that is attached to a date or time style.