pub enum HoursError {
UnknownTimezone(String),
BadTime(String),
BadDate(String),
NonPositiveRange {
open: String,
close: String,
},
}Expand description
Why an hours node could not be evaluated or validated. All of these are
caught at load by crate::validate, so a validated flow never produces
one at run time — the engine treats it as a defect.
Variants§
Implementations§
Source§impl HoursError
impl HoursError
Sourcepub fn code(&self) -> &'static str
pub fn code(&self) -> &'static str
Stable snake_case code, shared with the TypeScript validator
(hours.ts) and the conformance corpus. The Rust validator surfaces
these through crate::validate::ValidationError::code so both
languages report the same hours code for the same defect.
Trait Implementations§
Source§impl Clone for HoursError
impl Clone for HoursError
Source§fn clone(&self) -> HoursError
fn clone(&self) -> HoursError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 HoursError
impl Debug for HoursError
Source§impl Display for HoursError
impl Display for HoursError
impl Eq for HoursError
Source§impl Error for HoursError
impl Error for HoursError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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 PartialEq for HoursError
impl PartialEq for HoursError
impl StructuralPartialEq for HoursError
Auto Trait Implementations§
impl Freeze for HoursError
impl RefUnwindSafe for HoursError
impl Send for HoursError
impl Sync for HoursError
impl Unpin for HoursError
impl UnsafeUnpin for HoursError
impl UnwindSafe for HoursError
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§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.