pub enum PaftError {
EmptySearchQuery,
InvalidSearchLimit(usize),
ExclusiveRangeAndPeriod,
InvalidPeriod {
start: i64,
end: i64,
},
InvalidPeriodFormat {
format: String,
},
}Expand description
Errors shared across the paft workspace (request validation, parsing, etc.).
Variants§
EmptySearchQuery
Search query must not be empty.
InvalidSearchLimit(usize)
Search limit must be greater than 0.
ExclusiveRangeAndPeriod
HistoryRequest: ‘range’ and ‘period’ are mutually exclusive.
InvalidPeriod
HistoryRequest: ‘period’ start must be before end.
InvalidPeriodFormat
Invalid period format provided for parsing.
Trait Implementations§
Source§impl Error for PaftError
impl Error for PaftError
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 Eq for PaftError
impl StructuralPartialEq for PaftError
Auto Trait Implementations§
impl Freeze for PaftError
impl RefUnwindSafe for PaftError
impl Send for PaftError
impl Sync for PaftError
impl Unpin for PaftError
impl UnwindSafe for PaftError
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