pub fn is_valid(&mut self) -> Result<(), DeployConfigurationFailure> {
        match self.is_valid.as_ref() {
            None => {
                let validity = validate_deploy(self);
                self.is_valid = Some(validity.clone());
                validity
            }
            Some(validity) => validity.clone(),
        }
    }
/// Returns true if and only if:
///   * the deploy hash is correct (should be the hash of the header), and
///   * the body hash is correct (should be the hash of the body), and
///   * approvals are non empty, and
///   * all approvals are valid signatures of the deploy hash
Returns true if and only if:
the deploy hash is correct (should be the hash of the header), and
the body hash is correct (should be the hash of the body), and
approvals are non empty, and
all approvals are valid signatures of the deploy hash
Returns true if and only if : the deploy hash is correct ( should be the hash of the header ) and the body hash is correct ( should be the hash of the body ) and approvals are non empty and all approvals are valid signatures of the deploy hash
pub fn is_valid(&mut self) -> Result<(), DeployConfigurationFailure> {
        match self.is_valid.as_ref() {
            None => {
                let validity = validate_deploy(self);
                self.is_valid = Some(validity.clone());
                validity
            }
            Some(validity) => validity.clone(),
        }
    }
pub fn is_valid ( & mut self ) -> Result < ( ) , DeployConfigurationFailure > { match self . is_valid . as_ref ( ) { None => { let validity = validate_deploy ( self ) ; self . is_valid = Some ( validity . clone ( ) ) ; validity } Some ( validity ) => validity . clone ( ) , } }
Returns true if and only if:
 the deploy hash is correct (should be the hash of the header), and
 the body hash is correct (should be the hash of the body), and
 approvals are non empty, and
 all approvals are valid signatures of the deploy hash
Returns true if and only if : the deploy hash is correct ( should be the hash of the header ) and the body hash is correct ( should be the hash of the body ) and approvals are non empty and all approvals are valid signatures of the deploy hash
&mut self
&mut self