Struct OffsetFormat

struct OffsetFormat { ... }

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.

Implementations

impl Clone for OffsetFormat

fn clone(self: &Self) -> OffsetFormat

impl Copy for OffsetFormat

impl Debug for OffsetFormat

fn fmt(self: &Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Result

impl Eq for OffsetFormat

impl Freeze for OffsetFormat

impl Hash for OffsetFormat

fn hash<__H: $crate::hash::Hasher>(self: &Self, state: &mut __H)

impl PartialEq for OffsetFormat

fn eq(self: &Self, other: &OffsetFormat) -> bool

impl RefUnwindSafe for OffsetFormat

impl Send for OffsetFormat

impl StructuralPartialEq for OffsetFormat

impl Sync for OffsetFormat

impl Unpin for OffsetFormat

impl UnwindSafe for OffsetFormat

impl<T> Any for OffsetFormat

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for OffsetFormat

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for OffsetFormat

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> CloneToUninit for OffsetFormat

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl<T> From for OffsetFormat

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToOwned for OffsetFormat

fn to_owned(self: &Self) -> T
fn clone_into(self: &Self, target: &mut T)

impl<T, U> Into for OffsetFormat

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for OffsetFormat

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for OffsetFormat

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>