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 · 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 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§
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,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 4 bytes