pub struct NumberingFormat { /* private fields */ }
Implementations§
Source§impl NumberingFormat
impl NumberingFormat
pub const FORMAT_GENERAL: &'static str = "General"
pub const FORMAT_TEXT: &'static str = "@"
pub const FORMAT_NUMBER: &'static str = "0"
pub const FORMAT_NUMBER_00: &'static str = "0.00"
pub const FORMAT_NUMBER_COMMA_SEPARATED1: &'static str = "#,##0.00"
pub const FORMAT_NUMBER_COMMA_SEPARATED2: &'static str = "#,##0.00_-"
pub const FORMAT_PERCENTAGE: &'static str = "0%"
pub const FORMAT_PERCENTAGE_00: &'static str = "0.00%"
pub const FORMAT_DATE_YYYYMMDD2: &'static str = "yyyy-mm-dd"
pub const FORMAT_DATE_YYYYMMDD: &'static str = "yyyy-mm-dd"
pub const FORMAT_DATE_DDMMYYYY: &'static str = "dd-mm-yyyy"
pub const FORMAT_DATE_DDMMYYYYSLASH: &'static str = "dd/mm/yyyy"
pub const FORMAT_DATE_DMYSLASH: &'static str = "d/m/yy"
pub const FORMAT_DATE_DMYMINUS: &'static str = "d-m-yy"
pub const FORMAT_DATE_DMMINUS: &'static str = "d-m"
pub const FORMAT_DATE_MYMINUS: &'static str = "m-yy"
pub const FORMAT_DATE_XLSX14: &'static str = "mm-dd-yy"
pub const FORMAT_DATE_XLSX15: &'static str = "d-mmm-yy"
pub const FORMAT_DATE_XLSX16: &'static str = "d-mmm"
pub const FORMAT_DATE_XLSX17: &'static str = "mmm-yy"
pub const FORMAT_DATE_XLSX22: &'static str = "m/d/yy h:mm"
pub const FORMAT_DATE_DATETIME: &'static str = "d/m/yy h:mm"
pub const FORMAT_DATE_TIME1: &'static str = "h:mm AM/PM"
pub const FORMAT_DATE_TIME2: &'static str = "h:mm:ss AM/PM"
pub const FORMAT_DATE_TIME3: &'static str = "h:mm"
pub const FORMAT_DATE_TIME4: &'static str = "h:mm:ss"
pub const FORMAT_DATE_TIME5: &'static str = "mm:ss"
pub const FORMAT_DATE_TIME6: &'static str = "h:mm:ss"
pub const FORMAT_DATE_TIME8: &'static str = "h:mm:ss;@"
pub const FORMAT_DATE_YYYYMMDDSLASH: &'static str = "yyyy/mm/dd;@"
pub const FORMAT_CURRENCY_USD_SIMPLE: &'static str = r##""$"#,##0.00_-"##
pub const FORMAT_CURRENCY_USD: &'static str = r###"$#,##0_-"###
pub const FORMAT_CURRENCY_EUR_SIMPLE: &'static str = r#"#,##0.00_-"€""#
pub const FORMAT_CURRENCY_EUR: &'static str = r#"#,##0_-"€""#
pub const FORMAT_ACCOUNTING_USD: &'static str = r#"_("$"* #,##0.00_);_("$"* \(#,##0.00\);_("$"* "-"??_);_(@_)"#
pub const FORMAT_ACCOUNTING_EUR: &'static str = r#"_("€"* #,##0.00_);_("€"* \(#,##0.00\);_("€"* "-"??_);_(@_)"#
pub fn get_number_format_id(&self) -> &u32
pub fn set_number_format_id(&mut self, value: u32) -> &mut Self
Sourcepub fn set_format_code<S: Into<String>>(&mut self, value: S) -> &mut Self
pub fn set_format_code<S: Into<String>>(&mut self, value: S) -> &mut Self
Set the format code.
§Arguments
value
- format code. (umya_spreadsheet::NumberingFormat)
§Examples
let mut book = umya_spreadsheet::new_file();
let mut worksheet = book.get_sheet_mut(&0).unwrap();
let _ = worksheet.get_style_mut("C30")
.get_number_format_mut()
.set_format_code(umya_spreadsheet::NumberingFormat::FORMAT_DATE_XLSX17);
pub fn get_format_code(&self) -> &str
Trait Implementations§
Source§impl Clone for NumberingFormat
impl Clone for NumberingFormat
Source§fn clone(&self) -> NumberingFormat
fn clone(&self) -> NumberingFormat
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for NumberingFormat
impl Debug for NumberingFormat
Source§impl Default for NumberingFormat
impl Default for NumberingFormat
Source§impl Ord for NumberingFormat
impl Ord for NumberingFormat
Source§fn cmp(&self, other: &NumberingFormat) -> Ordering
fn cmp(&self, other: &NumberingFormat) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for NumberingFormat
impl PartialEq for NumberingFormat
Source§impl PartialOrd for NumberingFormat
impl PartialOrd for NumberingFormat
impl Eq for NumberingFormat
impl StructuralPartialEq for NumberingFormat
Auto Trait Implementations§
impl Freeze for NumberingFormat
impl RefUnwindSafe for NumberingFormat
impl Send for NumberingFormat
impl Sync for NumberingFormat
impl Unpin for NumberingFormat
impl UnwindSafe for NumberingFormat
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.