Enum rrule::ValidationError
source · pub enum ValidationError {
BySetPosWithoutByRule,
InvalidFieldValue {
field: String,
value: String,
},
InvalidFieldValueRange {
field: String,
value: String,
start_idx: String,
end_idx: String,
},
InvalidFieldValueRangeWithFreq {
field: String,
value: String,
freq: Frequency,
start_idx: String,
end_idx: String,
},
InvalidByRuleAndFrequency {
by_rule: String,
freq: Frequency,
},
UntilBeforeStart {
until: String,
dt_start: String,
},
TooBigInterval(u16),
StartYearOutOfRange(i32),
UnableToGenerateTimeset,
DtStartUntilMismatchTimezone {
dt_start_tz: String,
until_tz: String,
expected: Vec<String>,
},
}
Variants§
BySetPosWithoutByRule
InvalidFieldValue
InvalidFieldValueRange
InvalidFieldValueRangeWithFreq
InvalidByRuleAndFrequency
UntilBeforeStart
TooBigInterval(u16)
StartYearOutOfRange(i32)
UnableToGenerateTimeset
DtStartUntilMismatchTimezone
Trait Implementations§
source§impl Clone for ValidationError
impl Clone for ValidationError
source§fn clone(&self) -> ValidationError
fn clone(&self) -> ValidationError
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 ValidationError
impl Debug for ValidationError
source§impl Display for ValidationError
impl Display for ValidationError
source§impl Error for ValidationError
impl Error for ValidationError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<ValidationError> for RRuleError
impl From<ValidationError> for RRuleError
source§fn from(source: ValidationError) -> Self
fn from(source: ValidationError) -> Self
Converts to this type from the input type.
source§impl PartialEq for ValidationError
impl PartialEq for ValidationError
source§fn eq(&self, other: &ValidationError) -> bool
fn eq(&self, other: &ValidationError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ValidationError
impl StructuralPartialEq for ValidationError
Auto Trait Implementations§
impl Freeze for ValidationError
impl RefUnwindSafe for ValidationError
impl Send for ValidationError
impl Sync for ValidationError
impl Unpin for ValidationError
impl UnwindSafe for ValidationError
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