#[non_exhaustive]pub enum EvidenceAggregation {
Independent,
MaxContributions {
limit: NonZeroU32,
},
}Expand description
How matching observations contribute to one Bayesian calibration.
The default preserves independent contribution semantics. A bounded policy is explicit and local to one calibration; it never infers independence from producer names or other forgeable provenance strings.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Independent
Every distinct matching evidence ID contributes once.
MaxContributions
Only the strongest limit matches contribute.
Selection is deterministic: reliability, then observation time, then evidence ID. The expression trace still retains every candidate match.
Fields
§
limit: NonZeroU32Non-zero maximum number of observations.
Implementations§
Source§impl EvidenceAggregation
impl EvidenceAggregation
Sourcepub fn max_contributions(limit: u32) -> Result<Self, RuleEngineError>
pub fn max_contributions(limit: u32) -> Result<Self, RuleEngineError>
Creates an explicit non-zero contribution cap.
Trait Implementations§
Source§impl Clone for EvidenceAggregation
impl Clone for EvidenceAggregation
Source§fn clone(&self) -> EvidenceAggregation
fn clone(&self) -> EvidenceAggregation
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 moreimpl Copy for EvidenceAggregation
Source§impl Debug for EvidenceAggregation
impl Debug for EvidenceAggregation
Source§impl Default for EvidenceAggregation
impl Default for EvidenceAggregation
Source§fn default() -> EvidenceAggregation
fn default() -> EvidenceAggregation
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EvidenceAggregation
impl<'de> Deserialize<'de> for EvidenceAggregation
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 EvidenceAggregation
Source§impl PartialEq for EvidenceAggregation
impl PartialEq for EvidenceAggregation
Source§impl Serialize for EvidenceAggregation
impl Serialize for EvidenceAggregation
impl StructuralPartialEq for EvidenceAggregation
Auto Trait Implementations§
impl Freeze for EvidenceAggregation
impl RefUnwindSafe for EvidenceAggregation
impl Send for EvidenceAggregation
impl Sync for EvidenceAggregation
impl Unpin for EvidenceAggregation
impl UnsafeUnpin for EvidenceAggregation
impl UnwindSafe for EvidenceAggregation
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more