pub fn validate(&self) -> Result<(), Error> {
        if self.oracle_announcements.is_empty() {
            return Err(Error::InvalidState(
                "ContractInfo doesn't contain any announcement.".to_string(),
            ));
        }

        self.contract_descriptor
            .validate(&self.oracle_announcements)
    }
/// Validate that the descriptor covers all possible outcomes that can be attested
/// by the oracle(s).
Validate that the descriptor covers all possible outcomes that can be attested
by the oracle(s).
Validate that the descriptor covers all possible outcomes that can be attested by the oracle ( s ) .
pub fn validate(&self) -> Result<(), Error> {
        if self.oracle_announcements.is_empty() {
            return Err(Error::InvalidState(
                "ContractInfo doesn't contain any announcement.".to_string(),
            ));
        }
        self.contract_descriptor
            .validate(&self.oracle_announcements)
    }
pub fn validate ( & self ) -> Result < ( ) , Error > { if self . oracle_announcements . is_empty ( ) { return Err ( Error :: InvalidState ( " " . to_string ( ) , ) ) ; } self . contract_descriptor . validate ( & self . oracle_announcements ) }
Validate that the descriptor covers all possible outcomes that can be attested
by the oracle(s).
Validate that the descriptor covers all possible outcomes that can be attested by the oracle ( s ) .
&self