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§
fn intent_hash(&self) -> IntentHash
fn children(&self) -> impl ExactSizeIterator<Item = SubintentHash>
Sourcefn validate_intent(
&self,
validator: &TransactionValidator,
aggregation: &mut AcrossIntentAggregation,
) -> Result<ManifestYieldSummary, IntentValidationError>
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.