IntentStructure

Trait IntentStructure 

Source
pub trait IntentStructure {
    // Required methods
    fn intent_hash(&self) -> IntentHash;
    fn children(&self) -> impl ExactSizeIterator<Item = SubintentHash>;
    fn validate_intent(
        &self,
        validator: &TransactionValidator,
        aggregation: &mut AcrossIntentAggregation,
    ) -> Result<ManifestYieldSummary, IntentValidationError>;
}

Required Methods§

Source

fn intent_hash(&self) -> IntentHash

Source

fn children(&self) -> impl ExactSizeIterator<Item = SubintentHash>

Source

fn validate_intent( &self, validator: &TransactionValidator, aggregation: &mut AcrossIntentAggregation, ) -> Result<ManifestYieldSummary, IntentValidationError>

Should perform all the validation of the intent, except the relationship to other intents.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§