pub struct OffsetFormat {
pub precision: OffsetPrecision,
pub colons: Colons,
pub allow_zulu: bool,
pub padding: Pad,
}
Available on crate feature
chrono
only.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,
source§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
)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§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<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.