[][src]Type Definition csv_sanity::transformer::TransformResult

type TransformResult = Result<Option<String>, TransformError>;

Result for the transformation of a CSV record's field, either an Option<String> if successfully transformed or a TransformError if unsuccessful.

Trait Implementations

impl TransformResultHelper for TransformResult[src]

fn present(value: &str) -> TransformResult[src]

Construct a TransformResult that represents a successful transformation of a CSV record's field with a non-empty value. Read more

fn excluded() -> TransformResult[src]

Construct a TransformResult that represents a successful tranformation of a CSV record's field with an empty value. Read more

fn error(
    field_value: &str,
    field_name: &str,
    record_n: usize,
    reason: &str
) -> TransformResult
[src]

Construct a TransformResult that represents a failed transformation of a CSV record's field with a descritive error reason. Read more