#[non_exhaustive]pub enum DateFormat {
Iso8601,
Custom(String),
}Expand description
日付の出力形式
Excelの日付セルをMarkdownに変換する際の出力形式を指定します。
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Iso8601
ISO 8601形式(YYYY-MM-DD)
例: 2025-11-20
Custom(String)
カスタム形式(chrono互換フォーマット文字列)
chrono互換のフォーマット文字列を使用して、カスタム日付形式を指定します。
§フォーマット指定子(主要なもの)
%Y: 4桁の年(例: 2025)%y: 2桁の年(例: 25)%m: 2桁の月(01-12)%d: 2桁の日(01-31)%H: 24時間形式の時(00-23)%M: 分(00-59)%S: 秒(00-59)
§使用例
use xlsxzero::{ConverterBuilder, DateFormat};
let converter = ConverterBuilder::new()
.with_date_format(DateFormat::Custom("%Y年%m月%d日".to_string()))
.build()?;Trait Implementations§
Source§impl Clone for DateFormat
impl Clone for DateFormat
Source§fn clone(&self) -> DateFormat
fn clone(&self) -> DateFormat
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DateFormat
impl Debug for DateFormat
Source§impl PartialEq for DateFormat
impl PartialEq for DateFormat
impl Eq for DateFormat
impl StructuralPartialEq for DateFormat
Auto Trait Implementations§
impl Freeze for DateFormat
impl RefUnwindSafe for DateFormat
impl Send for DateFormat
impl Sync for DateFormat
impl Unpin for DateFormat
impl UnwindSafe for DateFormat
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> 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.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more