pub struct SpecResult {
pub repository: Option<String>,
pub spec: String,
pub effective: String,
pub instance: String,
pub data: BTreeMap<String, SpecRuleResult>,
pub rules: BTreeMap<String, SpecRuleResult>,
}Expand description
A spec instance returned by a rule, including the values needed to run it again.
Fields§
§repository: Option<String>§spec: String§effective: StringResolved row’s effective date. Empty when the row is the origin row.
instance: Stringuses path of this instance in the consumer (basic, basic.finance).
data: BTreeMap<String, SpecRuleResult>Evaluated data slots, keyed relative to spec. A slot with a value carries
that value; a vetoed slot carries vetoed and veto_reason. Unbound slots
are omitted.
rules: BTreeMap<String, SpecRuleResult>Rule results relative to spec (tax, finance.fee).
Trait Implementations§
Source§impl Clone for SpecResult
impl Clone for SpecResult
Source§impl Debug for SpecResult
impl Debug for SpecResult
Source§impl<'de> Deserialize<'de> for SpecResult
impl<'de> Deserialize<'de> for SpecResult
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
impl Eq for SpecResult
Source§impl PartialEq for SpecResult
impl PartialEq for SpecResult
Source§impl Serialize for SpecResult
impl Serialize for SpecResult
impl StructuralPartialEq for SpecResult
Auto Trait Implementations§
impl Freeze for SpecResult
impl RefUnwindSafe for SpecResult
impl Send for SpecResult
impl Sync for SpecResult
impl Unpin for SpecResult
impl UnsafeUnpin for SpecResult
impl UnwindSafe for SpecResult
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.