#[non_exhaustive]pub enum ManagementError {
Json(Error),
InvalidPublicKey(PublicKeyError),
InvalidUrl(UrlError),
}Expand description
Errors raised while building NIP-86 requests / parsing responses.
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.
Json(Error)
Wrapped JSON serialisation error.
InvalidPublicKey(PublicKeyError)
Wrapped pubkey parser error.
InvalidUrl(UrlError)
Wrapped URL parser error.
Trait Implementations§
Source§impl Debug for ManagementError
impl Debug for ManagementError
Source§impl Display for ManagementError
impl Display for ManagementError
Source§impl Error for ManagementError
impl Error for ManagementError
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 From<Error> for ManagementError
impl From<Error> for ManagementError
Source§impl From<PublicKeyError> for ManagementError
impl From<PublicKeyError> for ManagementError
Source§fn from(source: PublicKeyError) -> Self
fn from(source: PublicKeyError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for ManagementError
impl !UnwindSafe for ManagementError
impl Freeze for ManagementError
impl Send for ManagementError
impl Sync for ManagementError
impl Unpin for ManagementError
impl UnsafeUnpin for ManagementError
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