Trait warg_protocol::Validator
source · pub trait Validator: Debug + Serialize + DeserializeOwned + Default + Send + Sync {
type Record: Record;
type Error: Send;
// Required method
fn validate(
&mut self,
record: &ProtoEnvelope<Self::Record>
) -> Result<(), Self::Error>;
}
Expand description
Trait implemented by the validator types.
Required Associated Types§
Required Methods§
Object Safety§
This trait is not object safe.