#[non_exhaustive]pub enum TimeFormat {
Auto,
Hour12,
Hour24,
Hour24Utc,
Other(String),
}Expand description
timeFormat. A strftime pattern (any value with a %) is Other.
Docs: timeFormat.
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.
Auto
The same as unset; each time keeps its built-in format, which follows your locale on the turn duration message.
Hour12
A 12-hour clock.
Hour24
A 24-hour clock.
Hour24Utc
A 24-hour clock in UTC with Z after the minutes, such as 18:05Z; Claude Code
ignores timeZone
for this preset.
Other(String)
A value this crate doesn’t know, as written.
Implementations§
Trait Implementations§
Source§impl AsRef<str> for TimeFormat
impl AsRef<str> for TimeFormat
Source§impl Clone for TimeFormat
impl Clone for TimeFormat
Source§impl Debug for TimeFormat
impl Debug for TimeFormat
Source§impl<'de> Deserialize<'de> for TimeFormat
impl<'de> Deserialize<'de> for TimeFormat
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for TimeFormat
impl Display for TimeFormat
impl Eq for TimeFormat
Source§impl From<&str> for TimeFormat
impl From<&str> for TimeFormat
Source§impl From<String> for TimeFormat
impl From<String> for TimeFormat
Source§impl Hash for TimeFormat
impl Hash for TimeFormat
Source§impl Ord for TimeFormat
impl Ord for TimeFormat
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for TimeFormat
impl PartialEq for TimeFormat
Source§impl PartialOrd for TimeFormat
impl PartialOrd for TimeFormat
Source§impl Serialize for TimeFormat
impl Serialize for TimeFormat
impl StructuralPartialEq for TimeFormat
Auto Trait Implementations§
impl Forget for TimeFormat
impl Freeze for TimeFormat
impl Move for TimeFormat
impl RefUnwindSafe for TimeFormat
impl Send for TimeFormat
impl Sync for TimeFormat
impl Unpin for TimeFormat
impl UnsafeUnpin for TimeFormat
impl UnwindSafe for TimeFormat
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