[][src]Enum csvsc::error::Error

pub enum Error {
    Csv(String),
    InconsistentHeaders,
    InconsistentSizeOfRows(PathBuf),
    DuplicatedColumn(String),
    ColumnNotFound(String),
    ValueError {
        data: String,
        to_type: String,
    },
    ReNoMatch(StringString),
    InvalidFormat(String),
    IOError(String),
    NoSources,
}

An error found somewhere in the transformation chain.

Variants

Csv(String)

An error ocurred in the underlaying csv library, likely a permissions issue.

InconsistentHeaders

The headers of two of the input csv files do not match each other.

InconsistentSizeOfRows(PathBuf)

A stream was found that has a row with different number of fields than the rest.

DuplicatedColumn(String)

You tried to add a column to the stream but that name was alredy in use.

ColumnNotFound(String)

You tried to use a column as source for something but that column does not exist.

ValueError

An error ocurred trying to convert a value from string to a different data type.

Fields of ValueError

data: Stringto_type: String
ReNoMatch(StringString)

String didn't match regular expression. Likely in the .add() method.

InvalidFormat(String)

Template string for defining a new column had an invalid format.

IOError(String)

An IO error ocurred, and this is its representation.

NoSources

You atempted to create a row stream without adding any source files.

Trait Implementations

impl Clone for Error[src]

impl Debug for Error[src]

impl Display for Error[src]

impl Error for Error[src]

impl From<Error> for Error[src]

impl From<Error> for Error[src]

impl PartialEq<Error> for Error[src]

impl StructuralPartialEq for Error[src]

Auto Trait Implementations

impl RefUnwindSafe for Error

impl Send for Error

impl Sync for Error

impl Unpin for Error

impl UnwindSafe for Error

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, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.