pub struct PrettyDurationOptions {
pub output_format: Option<PrettyDurationOutputFormat>,
pub singular_labels: Option<PrettyDurationLabels>,
pub plural_labels: Option<PrettyDurationLabels>,
}Expand description
Options to customize the output String
Fields§
§output_format: Option<PrettyDurationOutputFormat>Output format PrettyDurationOutputFormat
singular_labels: Option<PrettyDurationLabels>Label to use when a unit of time must be singular
plural_labels: Option<PrettyDurationLabels>Trait Implementations§
Source§impl Clone for PrettyDurationOptions
impl Clone for PrettyDurationOptions
Source§fn clone(&self) -> PrettyDurationOptions
fn clone(&self) -> PrettyDurationOptions
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 moreAuto Trait Implementations§
impl Freeze for PrettyDurationOptions
impl RefUnwindSafe for PrettyDurationOptions
impl Send for PrettyDurationOptions
impl Sync for PrettyDurationOptions
impl Unpin for PrettyDurationOptions
impl UnwindSafe for PrettyDurationOptions
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