pub struct PortableRefitProvenance {
pub schema_version: u32,
pub parent_recipe_id: String,
pub parent_recipe_fingerprint: String,
pub parent_package_fingerprint: String,
pub parent_outcome: TrainingOutcomeRef,
pub target_training_request_fingerprint: String,
pub target_data_identities_fingerprint: String,
pub target_training_influence_fingerprint: String,
pub target_relation_fingerprint: String,
pub provenance_fingerprint: String,
}Expand description
New-cohort evidence carried by a future V3 outcome and execution bundle.
It is intentionally separate from PortableRefitRecipe: the recipe
identifies the immutable parent, while this record proves the child did
not reuse the parent’s training request, identity set, or influence state.
Fields§
§schema_version: u32§parent_recipe_id: String§parent_recipe_fingerprint: String§parent_package_fingerprint: String§parent_outcome: TrainingOutcomeRef§target_training_request_fingerprint: String§target_data_identities_fingerprint: String§target_training_influence_fingerprint: String§target_relation_fingerprint: String§provenance_fingerprint: StringImplementations§
Source§impl PortableRefitProvenance
impl PortableRefitProvenance
pub fn compute_fingerprint(&self) -> Result<String, DagMlError>
pub fn from_target_cohort( recipe: &PortableRefitRecipe, target_training_request_fingerprint: String, data_identities: &[TrainingDataIdentity], training_influence: &TrainingInfluenceManifest, ) -> Result<PortableRefitProvenance, DagMlError>
Sourcepub fn from_json_for_recipe(
json: &str,
recipe: &PortableRefitRecipe,
) -> Result<PortableRefitProvenance, DagMlError>
pub fn from_json_for_recipe( json: &str, recipe: &PortableRefitRecipe, ) -> Result<PortableRefitProvenance, DagMlError>
Parse target-cohort provenance only in the presence of its already attested parent recipe. A standalone parser would make the parent fields self-attested and is therefore intentionally not exposed.
pub fn validate_against_recipe( &self, recipe: &PortableRefitRecipe, ) -> Result<(), DagMlError>
Trait Implementations§
Source§impl Clone for PortableRefitProvenance
impl Clone for PortableRefitProvenance
Source§fn clone(&self) -> PortableRefitProvenance
fn clone(&self) -> PortableRefitProvenance
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 PortableRefitProvenance
impl Debug for PortableRefitProvenance
Source§impl<'de> Deserialize<'de> for PortableRefitProvenance
impl<'de> Deserialize<'de> for PortableRefitProvenance
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PortableRefitProvenance, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PortableRefitProvenance, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for PortableRefitProvenance
Source§impl PartialEq for PortableRefitProvenance
impl PartialEq for PortableRefitProvenance
Source§impl Serialize for PortableRefitProvenance
impl Serialize for PortableRefitProvenance
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for PortableRefitProvenance
Auto Trait Implementations§
impl Freeze for PortableRefitProvenance
impl RefUnwindSafe for PortableRefitProvenance
impl Send for PortableRefitProvenance
impl Sync for PortableRefitProvenance
impl Unpin for PortableRefitProvenance
impl UnsafeUnpin for PortableRefitProvenance
impl UnwindSafe for PortableRefitProvenance
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.