Enum pact_models::time_utils::DateTimeError[][src]

pub enum DateTimeError<I> {
    InvalidDayInYear(String),
    InvalidDayInMonth(String),
    InvalidMonth(String),
    InvalidQuarter(String),
    InvalidWeekInYear(String),
    InvalidDayOfWeek(String),
    InvalidHour(String),
    InvalidMinute(String),
    InvalidMillisecond(String),
    FullTimezonesNotSupported(String),
    InvalidTimezone(String),
    Nom(I, ErrorKind),
}
Expand description

Errors when parsing date time values

Variants

InvalidDayInYear(String)

Tuple Fields of InvalidDayInYear

0: String
InvalidDayInMonth(String)

Tuple Fields of InvalidDayInMonth

0: String
InvalidMonth(String)

Tuple Fields of InvalidMonth

0: String
InvalidQuarter(String)

Tuple Fields of InvalidQuarter

0: String
InvalidWeekInYear(String)

Tuple Fields of InvalidWeekInYear

0: String
InvalidDayOfWeek(String)

Tuple Fields of InvalidDayOfWeek

0: String
InvalidHour(String)

Tuple Fields of InvalidHour

0: String
InvalidMinute(String)

Tuple Fields of InvalidMinute

0: String
InvalidMillisecond(String)

Tuple Fields of InvalidMillisecond

0: String
FullTimezonesNotSupported(String)

Tuple Fields of FullTimezonesNotSupported

0: String
InvalidTimezone(String)

Tuple Fields of InvalidTimezone

0: String
Nom(I, ErrorKind)

Nom error occurred

Tuple Fields of Nom

0: I1: ErrorKind

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Creates an error from the input position and an ErrorKind

Combines an existing error with a new one created from the input position and an ErrorKind. This is useful when backtracking through a parse tree, accumulating error context on the way Read more

Creates an error from an input position and an expected character

Combines two existing errors. This function is used to compare errors generated in various branches of alt. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.