Trait hdk::prelude::judged::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§