[][src]Enum paperclip::PaperClipError

pub enum PaperClipError {
    Validation(ValidationError),
    InvalidCodegenDirectory,
    UnsupportedOpenAPIVersion,
    RelativePathNotUnique(String),
    MissingParametersInPath(StringHashSet<String>),
    InvalidHost(StringParseError),
    InvalidBasePathURL(StringParseError),
    MissingArrayItem(Option<String>),
    InvalidDefinitionName(String),
    MissingDefinitionName,
    InvalidDefinitionPath(PathBuf),
    Io(Error),
    Json(Error),
    Yaml(Error),
    Templating(Error),
}

Global error which encapsulates all related errors.

Variants

Validation(ValidationError)

Error encountered during spec validation.

InvalidCodegenDirectory

The given directory cannot be used for generating code.

UnsupportedOpenAPIVersion

Currently, we only support OpenAPI v2, and eventually v3.

RelativePathNotUnique(String)

Paths listed in the spec must be unique.

MissingParametersInPath(StringHashSet<String>)
InvalidHost(StringParseError)

Invalid host for URL.

InvalidBasePathURL(StringParseError)

Invalid base path URL.

MissingArrayItem(Option<String>)

The given schema object is an array, but the items field is missing.

InvalidDefinitionName(String)

The name for the given definition is invalid.

MissingDefinitionName

The name for the given definition is missing.

InvalidDefinitionPath(PathBuf)

A valid path cannot be obtained for the given definition.

Io(Error)

I/O errors.

Json(Error)

JSON coding errors.

Yaml(Error)

YAML coding errors.

Templating(Error)

Errors in templating.

Trait Implementations

impl Debug for PaperClipError[src]

impl Display for PaperClipError[src]

impl Error for PaperClipError[src]

impl From<Error> for PaperClipError[src]

impl From<Error> for PaperClipError[src]

impl From<Error> for PaperClipError[src]

impl From<Error> for PaperClipError[src]

impl From<ValidationError> for PaperClipError[src]

Auto Trait Implementations

impl !RefUnwindSafe for PaperClipError

impl Send for PaperClipError

impl Sync for PaperClipError

impl Unpin for PaperClipError

impl !UnwindSafe for PaperClipError

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,