pub struct ExecutionPlanSerialized {
pub spec_name: String,
pub commentary: Option<String>,
pub data: IndexMap<DataPath, DataDefinition>,
pub rules: Vec<ExecutableRule>,
pub reference_evaluation_order: Vec<DataPath>,
pub meta: HashMap<String, MetaValue>,
pub unit_index: HashMap<String, Arc<LemmaType>>,
pub effective: EffectiveDate,
pub sources: Vec<SpecSource>,
}Expand description
The serializable form of an ExecutionPlan.
ExecutionPlan itself is not Serialize/Deserialize: it contains derived
runtime state (signature_index, resolved_types.resolved,
resolved_types.declared_defaults) that is either recomputed on reconstruction
or belongs to the planning phase only. This struct is the sole canonical
representation for persistence and transport.
Convert via From<&ExecutionPlan> to serialize and TryFrom<ExecutionPlanSerialized>
to reconstruct.
Fields§
§spec_name: String§commentary: Option<String>§data: IndexMap<DataPath, DataDefinition>§rules: Vec<ExecutableRule>§reference_evaluation_order: Vec<DataPath>§meta: HashMap<String, MetaValue>§unit_index: HashMap<String, Arc<LemmaType>>Only the unit index is persisted from resolved_types; the rest is
ephemeral planning state that is not needed after planning.
effective: EffectiveDate§sources: Vec<SpecSource>Trait Implementations§
Source§impl Clone for ExecutionPlanSerialized
impl Clone for ExecutionPlanSerialized
Source§fn clone(&self) -> ExecutionPlanSerialized
fn clone(&self) -> ExecutionPlanSerialized
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExecutionPlanSerialized
impl Debug for ExecutionPlanSerialized
Source§impl<'de> Deserialize<'de> for ExecutionPlanSerialized
impl<'de> Deserialize<'de> for ExecutionPlanSerialized
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&ExecutionPlan> for ExecutionPlanSerialized
impl From<&ExecutionPlan> for ExecutionPlanSerialized
Source§fn from(plan: &ExecutionPlan) -> Self
fn from(plan: &ExecutionPlan) -> Self
Converts to this type from the input type.
Source§impl Serialize for ExecutionPlanSerialized
impl Serialize for ExecutionPlanSerialized
Auto Trait Implementations§
impl Freeze for ExecutionPlanSerialized
impl RefUnwindSafe for ExecutionPlanSerialized
impl Send for ExecutionPlanSerialized
impl Sync for ExecutionPlanSerialized
impl Unpin for ExecutionPlanSerialized
impl UnsafeUnpin for ExecutionPlanSerialized
impl UnwindSafe for ExecutionPlanSerialized
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more