#[non_exhaustive]pub struct Evaluation {
pub value: Scalar,
pub lineage: Option<Vec<String>>,
}Expand description
What evaluating a cell gave (Resolver::evaluation): the value and, when the resolver
has it, the lineage: the inputs entries the evaluation read (receipt hashes and slice
entries), whose receipts and manifests the resolver offers for those the receipt under
verification does not list.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.value: ScalarThe evaluated value.
lineage: Option<Vec<String>>The entries the evaluation read, or None when the resolver does not say.
Implementations§
Source§impl Evaluation
impl Evaluation
Sourcepub fn new(value: Scalar) -> Evaluation
pub fn new(value: Scalar) -> Evaluation
A value without a lineage.
Sourcepub fn with_lineage(value: Scalar, lineage: Vec<String>) -> Evaluation
pub fn with_lineage(value: Scalar, lineage: Vec<String>) -> Evaluation
A value with the entries the evaluation read.
Trait Implementations§
Source§impl Clone for Evaluation
impl Clone for Evaluation
Source§impl Debug for Evaluation
impl Debug for Evaluation
impl Eq for Evaluation
Source§impl Hash for Evaluation
impl Hash for Evaluation
Source§impl PartialEq for Evaluation
impl PartialEq for Evaluation
impl StructuralPartialEq for Evaluation
Auto Trait Implementations§
impl Freeze for Evaluation
impl RefUnwindSafe for Evaluation
impl Send for Evaluation
impl Sync for Evaluation
impl Unpin for Evaluation
impl UnsafeUnpin for Evaluation
impl UnwindSafe for Evaluation
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