Enum cosworth::prelude::UrlGenerationError
source · pub enum UrlGenerationError {
ResourceNotFound,
NotEnoughElements,
ParseError(ParseError),
}
Expand description
Errors which can occur when attempting to generate resource uri.
Variants§
ResourceNotFound
Resource not found
NotEnoughElements
Not all path pattern covered
ParseError(ParseError)
URL parse error
Trait Implementations§
source§impl Debug for UrlGenerationError
impl Debug for UrlGenerationError
source§impl Display for UrlGenerationError
impl Display for UrlGenerationError
source§impl Fail for UrlGenerationError
impl Fail for UrlGenerationError
source§fn cause(&self) -> Option<&(dyn Fail + 'static)>
fn cause(&self) -> Option<&(dyn Fail + 'static)>
Returns a reference to the underlying cause of this failure, if it
is an error that wraps other errors. Read more
source§fn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace
carried by this failure, if it
carries one. Read moresource§impl From<ParseError> for UrlGenerationError
impl From<ParseError> for UrlGenerationError
source§fn from(err: ParseError) -> UrlGenerationError
fn from(err: ParseError) -> UrlGenerationError
Converts to this type from the input type.
source§impl PartialEq<UrlGenerationError> for UrlGenerationError
impl PartialEq<UrlGenerationError> for UrlGenerationError
source§fn eq(&self, other: &UrlGenerationError) -> bool
fn eq(&self, other: &UrlGenerationError) -> bool
source§impl ResponseError for UrlGenerationError
impl ResponseError for UrlGenerationError
InternalServerError
for UrlGeneratorError
source§fn error_response(&self) -> HttpResponse
fn error_response(&self) -> HttpResponse
Create response for error Read more
impl StructuralPartialEq for UrlGenerationError
Auto Trait Implementations§
impl RefUnwindSafe for UrlGenerationError
impl Send for UrlGenerationError
impl Sync for UrlGenerationError
impl Unpin for UrlGenerationError
impl UnwindSafe for UrlGenerationError
Blanket Implementations§
§impl<T> AsFail for Twhere
T: Fail,
impl<T> AsFail for Twhere
T: Fail,
source§impl<T> IntoSql for T
impl<T> IntoSql for T
source§fn into_sql<T>(self) -> Self::Expressionwhere
Self: AsExpression<T> + Sized,
fn into_sql<T>(self) -> Self::Expressionwhere
Self: AsExpression<T> + Sized,
Convert
self
to an expression for Diesel’s query builder. Read moresource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
Convert
&self
to an expression for Diesel’s query builder. Read more