[][src]Enum paperclip::PaperClipError

pub enum PaperClipError {
    Validation(ValidationError),
    InvalidCodegenDirectory,
    UnsupportedOpenAPIVersion,
    RelativePathNotUnique(String),
    MissingParametersInPath(StringHashSet<String>),
    InvalidHost(StringParseError),
    InvalidBasePathURL(StringParseError),
    MissingArrayItem(Option<String>),
    InvalidDefinitionName,
    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

The name for the given definition is missing or invalid.

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 From<Error> for PaperClipError[src]

impl From<Error> for PaperClipError[src]

impl From<Error> for PaperClipError[src]

impl From<ValidationError> for PaperClipError[src]

impl From<Error> for PaperClipError[src]

impl Display for PaperClipError[src]

impl Debug for PaperClipError[src]

impl Fail for PaperClipError[src]

Auto Trait Implementations

impl Send for PaperClipError

impl Sync for PaperClipError

impl Unpin for PaperClipError

impl !UnwindSafe for PaperClipError

impl !RefUnwindSafe for PaperClipError

Blanket Implementations

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

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

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<T> Borrow<T> for T where
    T: ?Sized
[src]

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

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

impl<T> AsFail for T where
    T: Fail, 

impl<E> Fail for E where
    E: 'static + Error + Send + Sync

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