Trait barter_data::Validator
source · [−]pub trait Validator {
fn validate(self) -> Result<Self, SocketError>
where
Self: Sized;
}Expand description
Validators are capable of determining if their internal state is satisfactory to fulfill
some use case defined by the implementor.
Required Methods
sourcefn validate(self) -> Result<Self, SocketError> where
Self: Sized,
fn validate(self) -> Result<Self, SocketError> where
Self: Sized,
Check if Self is valid for some use case.