pub struct OffsetFormat {
pub precision: OffsetPrecision,
pub colons: Colons,
pub allow_zulu: bool,
pub padding: Pad,
}
Expand description
Type for specifying the format of UTC offsets.
Fields§
§precision: OffsetPrecision
See OffsetPrecision
.
colons: Colons
Separator between hours, minutes and seconds.
allow_zulu: bool
Represent +00:00
as Z
.
padding: Pad
Pad the hour value to two digits.
Trait Implementations§
Source§impl Clone for OffsetFormat
impl Clone for OffsetFormat
Source§fn clone(&self) -> OffsetFormat
fn clone(&self) -> OffsetFormat
Returns a copy of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for OffsetFormat
impl Debug for OffsetFormat
Source§impl Hash for OffsetFormat
impl Hash for OffsetFormat
Source§impl PartialEq for OffsetFormat
impl PartialEq for OffsetFormat
impl Copy for OffsetFormat
impl Eq for OffsetFormat
impl StructuralPartialEq for OffsetFormat
Auto Trait Implementations§
impl Freeze for OffsetFormat
impl RefUnwindSafe for OffsetFormat
impl Send for OffsetFormat
impl Sync for OffsetFormat
impl Unpin for OffsetFormat
impl UnwindSafe for OffsetFormat
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)