usecrate::Error;/// Check an OpenC2 structure for validity that can't be enforced by the type system.
pubtraitCheck{/// Returns all the validation errors in the structure, or `Ok` if there are none.
////// Use `Error::accumulator()` to accumulate multiple errors rather than returning
/// immediately.
fncheck(&self)->Result<(), Error>;}impl<T: Check> Check forOption<T>{fncheck(&self)->Result<(), Error>{ifletSome(inner)=self{
inner.check()}else{Ok(())}}}