pub struct PredictCohort {
pub role: PredictCohortRole,
pub physical_sample_ids: Vec<SampleId>,
pub origin_sample_ids: Vec<SampleId>,
pub target_names: Vec<String>,
pub relation_fingerprint: String,
pub relations: CoordinatorRelationSet,
pub data_content_fingerprint: String,
pub target_content_fingerprint: Option<String>,
pub cohort_fingerprint: String,
}Fields§
§role: PredictCohortRole§physical_sample_ids: Vec<SampleId>§origin_sample_ids: Vec<SampleId>§target_names: Vec<String>§relation_fingerprint: String§relations: CoordinatorRelationSet§data_content_fingerprint: String§target_content_fingerprint: Option<String>§cohort_fingerprint: StringImplementations§
Source§impl PredictCohort
impl PredictCohort
pub fn from_relations( role: PredictCohortRole, relations: CoordinatorRelationSet, target_names: Vec<String>, data_content_fingerprint: String, target_content_fingerprint: Option<String>, ) -> Result<PredictCohort, DataError>
pub fn fingerprint(&self) -> Result<String, DataError>
pub fn validate(&self) -> Result<(), DataError>
pub fn validate_disjoint( &self, training_relations: &CoordinatorRelationSet, ) -> Result<(), DataError>
Trait Implementations§
Source§impl Clone for PredictCohort
impl Clone for PredictCohort
Source§fn clone(&self) -> PredictCohort
fn clone(&self) -> PredictCohort
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 PredictCohort
impl Debug for PredictCohort
Source§impl<'de> Deserialize<'de> for PredictCohort
impl<'de> Deserialize<'de> for PredictCohort
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PredictCohort, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PredictCohort, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PredictCohort
impl PartialEq for PredictCohort
Source§impl Serialize for PredictCohort
impl Serialize for PredictCohort
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 PredictCohort
Auto Trait Implementations§
impl Freeze for PredictCohort
impl RefUnwindSafe for PredictCohort
impl Send for PredictCohort
impl Sync for PredictCohort
impl Unpin for PredictCohort
impl UnsafeUnpin for PredictCohort
impl UnwindSafe for PredictCohort
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