pub fn validate(&self) -> Result<(), Error> {
        let expected_nb_nonces = match &self.event_descriptor {
            EventDescriptor::EnumEvent(_) => 1,
            EventDescriptor::DigitDecompositionEvent(d) => d.nb_digits as usize,
        };

        if expected_nb_nonces == self.oracle_nonces.len() {
            Ok(())
        } else {
            Err(Error::InvalidArgument)
        }
    }
/// Returns whether the event passes validity checks.
Returns whether the event passes validity checks.
Returns whether the event passes validity checks .
pub fn validate(&self) -> Result<(), Error> {
        let expected_nb_nonces = match &self.event_descriptor {
            EventDescriptor::EnumEvent(_) => 1,
            EventDescriptor::DigitDecompositionEvent(d) => d.nb_digits as usize,
        };
        if expected_nb_nonces == self.oracle_nonces.len() {
            Ok(())
        } else {
            Err(Error::InvalidArgument)
        }
    }
pub fn validate ( & self ) -> Result < ( ) , Error > { let expected_nb_nonces = match & self . event_descriptor { EventDescriptor :: EnumEvent ( _ ) => 1 , EventDescriptor :: DigitDecompositionEvent ( d ) => d . nb_digits as usize , } ; if expected_nb_nonces == self . oracle_nonces . len ( ) { Ok ( ( ) ) } else { Err ( Error :: InvalidArgument ) } }
Returns whether the event passes validity checks.
Returns whether the event passes validity checks .
&self