Keep changed fields core-shaped
This commit is contained in:
parent
01d6a55b14
commit
6d055ab518
10 changed files with 139 additions and 56 deletions
|
|
@ -216,6 +216,7 @@ pub use state_ledger::close_state_branch;
|
|||
pub use state_ledger::load_state_ledger;
|
||||
pub use state_ledger::state_ledger_status;
|
||||
pub use state_update::EpiphanyStateUpdate;
|
||||
pub use state_update::EpiphanyStateUpdatedField;
|
||||
pub use state_update::apply_epiphany_state_update;
|
||||
pub use state_update::epiphany_state_update_validation_errors;
|
||||
pub use surfaces::EpiphanyAcceptanceBundle;
|
||||
|
|
|
|||
|
|
@ -19,6 +19,27 @@ use epiphany_state_model::EpiphanySubgoal;
|
|||
use epiphany_state_model::EpiphanyThreadState;
|
||||
use std::collections::HashSet;
|
||||
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
||||
pub enum EpiphanyStateUpdatedField {
|
||||
Objective,
|
||||
ActiveSubgoalId,
|
||||
Subgoals,
|
||||
Invariants,
|
||||
Graphs,
|
||||
GraphFrontier,
|
||||
GraphCheckpoint,
|
||||
Scratch,
|
||||
InvestigationCheckpoint,
|
||||
JobBindings,
|
||||
AcceptanceReceipts,
|
||||
RuntimeLinks,
|
||||
Observations,
|
||||
Evidence,
|
||||
Churn,
|
||||
Mode,
|
||||
Planning,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Default)]
|
||||
pub struct EpiphanyStateUpdate {
|
||||
pub expected_revision: Option<u64>,
|
||||
|
|
|
|||
Reference in a new issue