Enum CalendarIngestError
#[non_exhaustive]pub enum CalendarIngestError {
Malformed(String),
NoBusinessDay(String),
Reserved {
code: String,
reserved: Vec<&'static str>,
},
}Expand description
Why a calendar could not be ingested.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Malformed(String)
The code is empty or is not one token of letters, digits and dots.
NoBusinessDay(String)
Every day of the week is a weekend, so no day is a business day and rolling to one never ends.
Reserved
The code is one of the reserved rule-based codes, which never rebind.
Trait Implementations§
§impl Clone for CalendarIngestError
impl Clone for CalendarIngestError
§fn clone(&self) -> CalendarIngestError
fn clone(&self) -> CalendarIngestError
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 more§impl Debug for CalendarIngestError
impl Debug for CalendarIngestError
§impl Display for CalendarIngestError
impl Display for CalendarIngestError
impl Eq for CalendarIngestError
§impl Error for CalendarIngestError
impl Error for CalendarIngestError
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()
§impl PartialEq for CalendarIngestError
impl PartialEq for CalendarIngestError
§fn eq(&self, other: &CalendarIngestError) -> bool
fn eq(&self, other: &CalendarIngestError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CalendarIngestError
Auto Trait Implementations§
impl Freeze for CalendarIngestError
impl RefUnwindSafe for CalendarIngestError
impl Send for CalendarIngestError
impl Sync for CalendarIngestError
impl Unpin for CalendarIngestError
impl UnsafeUnpin for CalendarIngestError
impl UnwindSafe for CalendarIngestError
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