pub struct RawSourceBasisReferenceV1 { /* private fields */ }Expand description
One raw-source scalar retained directly in a prediction basis.
Implementations§
Source§impl RawSourceBasisReferenceV1
impl RawSourceBasisReferenceV1
Sourcepub fn from_source(
domain: RawSourceDomainV1,
key: RawSourceKeyV1,
field: RawSourceFieldIdV1,
facts: SourceFactsViewV1<'_>,
) -> Result<Self, PredictionContractError>
pub fn from_source( domain: RawSourceDomainV1, key: RawSourceKeyV1, field: RawSourceFieldIdV1, facts: SourceFactsViewV1<'_>, ) -> Result<Self, PredictionContractError>
Construct one raw-source reference from the authoritative same-load view.
Sourcepub fn validate_against(
&self,
facts: SourceFactsViewV1<'_>,
) -> Result<(), PredictionContractError>
pub fn validate_against( &self, facts: SourceFactsViewV1<'_>, ) -> Result<(), PredictionContractError>
Validate this exact scalar against the same-load source-facts view.
Sourcepub const fn domain(&self) -> RawSourceDomainV1
pub const fn domain(&self) -> RawSourceDomainV1
Raw-source evidence domain.
Sourcepub const fn key(&self) -> &RawSourceKeyV1
pub const fn key(&self) -> &RawSourceKeyV1
Stable raw-source row key.
Sourcepub const fn field(&self) -> &RawSourceFieldIdV1
pub const fn field(&self) -> &RawSourceFieldIdV1
Exact scalar field.
Sourcepub const fn value(&self) -> &PredictionScalarV1
pub const fn value(&self) -> &PredictionScalarV1
Exact scalar value.
Trait Implementations§
Source§impl Clone for RawSourceBasisReferenceV1
impl Clone for RawSourceBasisReferenceV1
Source§fn clone(&self) -> RawSourceBasisReferenceV1
fn clone(&self) -> RawSourceBasisReferenceV1
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 RawSourceBasisReferenceV1
impl Debug for RawSourceBasisReferenceV1
Source§impl<'de> Deserialize<'de> for RawSourceBasisReferenceV1
impl<'de> Deserialize<'de> for RawSourceBasisReferenceV1
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 RawSourceBasisReferenceV1
Source§impl Ord for RawSourceBasisReferenceV1
impl Ord for RawSourceBasisReferenceV1
Source§fn cmp(&self, other: &RawSourceBasisReferenceV1) -> Ordering
fn cmp(&self, other: &RawSourceBasisReferenceV1) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for RawSourceBasisReferenceV1
impl PartialOrd for RawSourceBasisReferenceV1
impl StructuralPartialEq for RawSourceBasisReferenceV1
Auto Trait Implementations§
impl Freeze for RawSourceBasisReferenceV1
impl RefUnwindSafe for RawSourceBasisReferenceV1
impl Send for RawSourceBasisReferenceV1
impl Sync for RawSourceBasisReferenceV1
impl Unpin for RawSourceBasisReferenceV1
impl UnsafeUnpin for RawSourceBasisReferenceV1
impl UnwindSafe for RawSourceBasisReferenceV1
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