Enum htsget_http::HtsGetError
source · pub enum HtsGetError {
InvalidAuthentication(String),
PermissionDenied(String),
NotFound(String),
PayloadTooLarge(String),
UnsupportedFormat(String),
InvalidInput(String),
InvalidRange(String),
InternalError(String),
}Expand description
An error type that describes the errors specified in the HtsGet specification
Variants§
InvalidAuthentication(String)
PermissionDenied(String)
NotFound(String)
PayloadTooLarge(String)
UnsupportedFormat(String)
InvalidInput(String)
InvalidRange(String)
InternalError(String)
Implementations§
source§impl HtsGetError
impl HtsGetError
sourcepub fn to_json_representation(&self) -> (WrappedHtsGetError, StatusCode)
pub fn to_json_representation(&self) -> (WrappedHtsGetError, StatusCode)
Allows converting the error to JSON and the correspondent status code
Trait Implementations§
source§impl Debug for HtsGetError
impl Debug for HtsGetError
source§impl Display for HtsGetError
impl Display for HtsGetError
source§impl Error for HtsGetError
impl Error for HtsGetError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<HtsGetError> for HtsGetError
impl From<HtsGetError> for HtsGetError
source§fn from(error: HtsGetSearchError) -> Self
fn from(error: HtsGetSearchError) -> Self
Converts to this type from the input type.
source§impl PartialEq<HtsGetError> for HtsGetError
impl PartialEq<HtsGetError> for HtsGetError
source§fn eq(&self, other: &HtsGetError) -> bool
fn eq(&self, other: &HtsGetError) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for HtsGetError
impl StructuralEq for HtsGetError
impl StructuralPartialEq for HtsGetError
Auto Trait Implementations§
impl RefUnwindSafe for HtsGetError
impl Send for HtsGetError
impl Sync for HtsGetError
impl Unpin for HtsGetError
impl UnwindSafe for HtsGetError
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.