pub trait LedgerEntity: Entity {
// Required method
fn entity_runtime_state(&self) -> Option<EntityRuntimeState>;
// Provided method
fn include_pending_mutations_from<E: LedgerEntity>(
&self,
source: &E,
) -> Result<(), LedgerCompositionError> { ... }
}Required Methods§
fn entity_runtime_state(&self) -> Option<EntityRuntimeState>
Provided Methods§
Sourcefn include_pending_mutations_from<E: LedgerEntity>(
&self,
source: &E,
) -> Result<(), LedgerCompositionError>
fn include_pending_mutations_from<E: LedgerEntity>( &self, source: &E, ) -> Result<(), LedgerCompositionError>
Include another entity’s pending mutation intent in this entity’s save boundary.
This is explicit: it does not load a relation, query the database, or save either entity. The source keeps its ledger so a failed save can be retried. Set the modeled relationship on the source before composing it into the target graph.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".