pub struct TaskMapping {
pub adapter: AdapterRef,
pub rules: ContentDigest,
pub labels: Vec<LabelMapping>,
pub unmapped: u64,
pub unlabeled: u64,
}Expand description
How the dataset’s labels map to the task adapter’s (3.1.5).
Fields§
§adapter: AdapterRef§rules: ContentDigestThe adapter’s rules digest (spec 014): the correctness every qualified report is computed under.
labels: Vec<LabelMapping>Source label to adapter label.
unmapped: u64Cases whose source label maps to no adapter label: kept in the manifest with a missing label, counted, never dropped.
unlabeled: u64Cases the source left unlabeled.
Trait Implementations§
Source§impl Clone for TaskMapping
impl Clone for TaskMapping
Source§impl Debug for TaskMapping
impl Debug for TaskMapping
Source§impl<'de> Deserialize<'de> for TaskMapping
impl<'de> Deserialize<'de> for TaskMapping
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 TaskMapping
Source§impl PartialEq for TaskMapping
impl PartialEq for TaskMapping
Source§impl Serialize for TaskMapping
impl Serialize for TaskMapping
impl StructuralPartialEq for TaskMapping
Auto Trait Implementations§
impl Freeze for TaskMapping
impl RefUnwindSafe for TaskMapping
impl Send for TaskMapping
impl Sync for TaskMapping
impl Unpin for TaskMapping
impl UnsafeUnpin for TaskMapping
impl UnwindSafe for TaskMapping
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