pub struct EvaluationEvidence<'a> {
pub policy: &'a CampaignPolicy,
pub experiment_id: &'a EvalExperimentId,
pub baseline_bundle_digest: &'a str,
pub candidate_bundle_digest: &'a str,
pub development: &'a ComparisonDecision,
pub holdout: &'a ComparisonDecision,
}Expand description
The facts an evaluation attestation commits to, hashed as canonical JSON (RFC 8785) so the digest does not depend on field order.
Fields§
§policy: &'a CampaignPolicy§experiment_id: &'a EvalExperimentId§baseline_bundle_digest: &'a str§candidate_bundle_digest: &'a str§development: &'a ComparisonDecision§holdout: &'a ComparisonDecisionImplementations§
Source§impl EvaluationEvidence<'_>
impl EvaluationEvidence<'_>
pub fn digest(&self) -> Result<AssetDigest, OptimizationError>
Trait Implementations§
Source§impl<'a> Debug for EvaluationEvidence<'a>
impl<'a> Debug for EvaluationEvidence<'a>
Source§impl<'a> From<&'a CampaignReport> for EvaluationEvidence<'a>
impl<'a> From<&'a CampaignReport> for EvaluationEvidence<'a>
Source§fn from(report: &'a CampaignReport) -> Self
fn from(report: &'a CampaignReport) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> Freeze for EvaluationEvidence<'a>
impl<'a> RefUnwindSafe for EvaluationEvidence<'a>
impl<'a> Send for EvaluationEvidence<'a>
impl<'a> Sync for EvaluationEvidence<'a>
impl<'a> Unpin for EvaluationEvidence<'a>
impl<'a> UnsafeUnpin for EvaluationEvidence<'a>
impl<'a> UnwindSafe for EvaluationEvidence<'a>
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more