#[non_exhaustive]pub enum ListItemError {
MissingValue(&'static str),
InvalidPublicKey(PublicKeyError),
InvalidEventId(EventIdError),
InvalidCoordinate(CoordinateError),
InvalidRelayUrl(RelayUrlError),
}Expand description
Errors raised while parsing one ListItem from a tag.
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.
MissingValue(&'static str)
A required column was missing.
InvalidPublicKey(PublicKeyError)
Pubkey hex did not parse.
InvalidEventId(EventIdError)
Event id hex did not parse.
InvalidCoordinate(CoordinateError)
Coordinate string did not parse.
InvalidRelayUrl(RelayUrlError)
Relay URL did not parse.
Trait Implementations§
Source§impl Debug for ListItemError
impl Debug for ListItemError
Source§impl Display for ListItemError
impl Display for ListItemError
Source§impl Error for ListItemError
impl Error for ListItemError
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()
Auto Trait Implementations§
impl Freeze for ListItemError
impl RefUnwindSafe for ListItemError
impl Send for ListItemError
impl Sync for ListItemError
impl Unpin for ListItemError
impl UnsafeUnpin for ListItemError
impl UnwindSafe for ListItemError
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