Trait HasValidationStatus

Source
pub trait HasValidationStatus {
    type Data;

    // Required methods
    fn validation_status(&self) -> Option<ValidationStatus>;
    fn data(&self) -> &Self::Data;
}
Expand description

Data that requires a validation status.

Required Associated Types§

Source

type Data

The type of the inner data

Required Methods§

Source

fn validation_status(&self) -> Option<ValidationStatus>

Get the status of a some data. None means this data has not been validated yet.

Source

fn data(&self) -> &Self::Data

The data which has the validation status

Implementors§