pub struct AttestationTally {
pub explicit: u32,
pub derived: u32,
pub inferred: u32,
pub unknown: u32,
}Expand description
How much of one answer was authored, and how much a machine worked out.
Not decoration: it is the measurement that makes the provenance discipline checkable
from outside. A task whose declaration is mostly unknown is a placeholder however
complete its derived half looks, and this is the number that says so.
Fields§
§explicit: u32Fields a person authored in the canonical record.
derived: u32Fields worked out by a rule that cannot be wrong about a readable repository.
inferred: u32Fields worked out by a rule that can be wrong.
unknown: u32Fields not available at all.
Implementations§
Source§impl AttestationTally
impl AttestationTally
Sourcepub fn count(&mut self, p: FieldProvenance)
pub fn count(&mut self, p: FieldProvenance)
Count one field.
Trait Implementations§
Source§impl Clone for AttestationTally
impl Clone for AttestationTally
Source§fn clone(&self) -> AttestationTally
fn clone(&self) -> AttestationTally
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 moreimpl Copy for AttestationTally
Source§impl Debug for AttestationTally
impl Debug for AttestationTally
Source§impl Default for AttestationTally
impl Default for AttestationTally
Source§fn default() -> AttestationTally
fn default() -> AttestationTally
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AttestationTally
impl<'de> Deserialize<'de> for AttestationTally
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 AttestationTally
Source§impl JsonSchema for AttestationTally
impl JsonSchema for AttestationTally
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for AttestationTally
impl PartialEq for AttestationTally
Source§fn eq(&self, other: &AttestationTally) -> bool
fn eq(&self, other: &AttestationTally) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AttestationTally
impl Serialize for AttestationTally
impl StructuralPartialEq for AttestationTally
Auto Trait Implementations§
impl Freeze for AttestationTally
impl RefUnwindSafe for AttestationTally
impl Send for AttestationTally
impl Sync for AttestationTally
impl Unpin for AttestationTally
impl UnsafeUnpin for AttestationTally
impl UnwindSafe for AttestationTally
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.